Commit Graph

18509 Commits

Author SHA1 Message Date
Ilia Alshanetsky
8e907392b3 Fixed test (user is a reserved keyword in pgsql) 2006-12-04 17:55:46 +00:00
Antony Dovgal
bcf457d828 MFH: fix retval type 2006-12-04 15:58:48 +00:00
Ilia Alshanetsky
35f78f221b Fixed bug #37627 (session save_path check checks the parent directory). 2006-12-04 15:19:26 +00:00
Ilia Alshanetsky
7fb3715d43 Fixed bug #38319 (Remove bogus warnings from persistent PDO connections). 2006-12-04 03:07:44 +00:00
Ilia Alshanetsky
44045f8cb1 Fixed bug #38252 (Incorrect PDO error message on invalid default fetch mode). 2006-12-04 02:40:08 +00:00
Ilia Alshanetsky
fc21d423fd Added test for previous bug 2006-12-04 00:40:31 +00:00
Ilia Alshanetsky
4356aad0ae Fixed bug #39483 (Problem with handling of \ char in prepared statements). 2006-12-04 00:38:46 +00:00
Ilia Alshanetsky
e7c2bd6e40 Default to buffered queries (much faster)
Default to prepared statement emulation to avoid hitting MySQL bugs
2006-12-03 23:29:03 +00:00
Ilia Alshanetsky
44baca5aed Added missing check for mismatching number of tokens & bound params in
prepared statement emulation.
2006-12-03 23:27:44 +00:00
Ilia Alshanetsky
b6bdd44962 Added "default" option that allows a default value to be set for an invalid
or missing value.
2006-12-03 21:27:36 +00:00
Ilia Alshanetsky
9666f1deae Config fix from Gentoo 2006-12-03 19:54:55 +00:00
Ilia Alshanetsky
7999c9d251 Fixed bug #39718 (possible crash if assert.callback is set in ini). 2006-12-03 17:13:11 +00:00
Antony Dovgal
e1a63af85b MFH: fix leaks 2006-12-03 13:59:11 +00:00
Antony Dovgal
065be7056d MFH: fix AIX build 2006-12-03 13:46:37 +00:00
Hannes Magnusson
f61b9635ba Fix test on fbsd 2006-12-03 08:04:57 +00:00
Nuno Lopes
0df2a37d1b new tests. increase coverage for more than 90% 2006-12-02 21:39:28 +00:00
Ilia Alshanetsky
916673a345 Fixed bug #39527 (Failure to retrieve results when multiple unbuffered,
prepared statements are used in pdo_mysql).
2006-12-02 17:53:44 +00:00
Frank M. Kromann
66eb5b1dde Fix win32 build 2006-12-01 20:24:58 +00:00
Ilia Alshanetsky
b3004fb883 Fixed a possible memory corruption in dbase_open() with invalid open mode 2006-12-01 19:10:50 +00:00
Nuno Lopes
e65bdffab5 tests + BFN 2006-12-01 16:37:39 +00:00
Nuno Lopes
8e0cf44164 fix bug #39458: ftp_nlist() returns false on empty dirs 2006-12-01 16:34:43 +00:00
Marcus Boerger
5ea32dc1e4 - MFH: Fix handling of recursive inner iterators 2006-12-01 09:29:15 +00:00
Ilia Alshanetsky
5f3e233ea7 Disallow \0 chars inside session.save_path 2006-12-01 00:27:20 +00:00
Ilia Alshanetsky
c42d25dc33 Small hash table optimization 2006-11-30 23:51:24 +00:00
Ilia Alshanetsky
ac9927728a Added missing function checks 2006-11-30 16:48:03 +00:00
Ilia Alshanetsky
ca89b6dedd last set of zts fixes 2006-11-30 16:38:37 +00:00
Ilia Alshanetsky
c69555b948 Thread safety fixes. 2006-11-30 16:21:24 +00:00
Ilia Alshanetsky
891bd7888f Use reantrant crypt_r() whenever possible. 2006-11-30 15:59:53 +00:00
Ilia Alshanetsky
20b92bf4cc Use thread-safe code 2006-11-30 15:13:19 +00:00
Ilia Alshanetsky
52bd6de7f4 Thread safety fixed for *nix systems 2006-11-30 00:35:15 +00:00
Ilia Alshanetsky
466d9ba00a Fixed bug #39648 (Implementation of PHP functions chown() and chgrp() are
not thread safe).
2006-11-29 23:34:49 +00:00
Antony Dovgal
4cc29fef5c MFH 2006-11-29 22:53:26 +00:00
Derick Rethans
ac7e6f5fec - Updated timezone database to version 2006.16. 2006-11-29 20:00:49 +00:00
Ilia Alshanetsky
bfa4af46e1 Fixed bug #39663 (Memory leak in pg_get_notify() and a possible memory
corruption on Windows in pgsql and pdo_pgsql extensions).
2006-11-29 15:45:59 +00:00
Antony Dovgal
60bb494607 MFH: fix #39673 (file_get_contents causes bus error on certain offsets) 2006-11-29 11:12:59 +00:00
Rob Richards
d5d1801df7 correct fix for bug #39662 to fix leak and tree corruption
fix test
2006-11-29 08:51:36 +00:00
Marcus Boerger
ecd417c6ce - MFH: Add new example 2006-11-28 22:20:01 +00:00
Antony Dovgal
aaf120127e add php_unescape_html_entities() proto to the header
(fixes #39665)
2006-11-28 20:41:07 +00:00
Antony Dovgal
d55eb93c94 MFH: fix #39662 (Segfault when calling asXML() of a cloned SimpleXMLElement) 2006-11-28 18:59:53 +00:00
Antony Dovgal
bb30875db6 add test 2006-11-28 16:55:05 +00:00
Ilia Alshanetsky
2d4b8e19e2 Fixed bug #39656 (crash when calling fetch() on a PDO statment object
after closeCursor()).
2006-11-28 16:27:53 +00:00
Antony Dovgal
5a6c11d9f4 MFH: fix #39653 (ext/dba doesn't check for db-4.5 and db-4.4 when db4 support is enabled) 2006-11-28 11:39:19 +00:00
Pierre Joye
a70264892b - fix warning
- addEmptyDir returns true on success
- remove useless semi column
2006-11-28 01:31:53 +00:00
Ilia Alshanetsky
34b55f2012 Replace non-threadsafe rand() with php_rand_r() 2006-11-28 00:22:05 +00:00
Antony Dovgal
9503b966ec MFH: fix #39564 (PDO::errorInfo() returns inconsistent information when sqlite3_step() fails) 2006-11-27 12:14:09 +00:00
Antony Dovgal
a3c2958f22 MFH: fix test on FreeBSD 2006-11-27 11:43:59 +00:00
Ilia Alshanetsky
e6a3431315 Fixed bug #39623 (thread safety fixes on *nix for putenv() & mime_magic). 2006-11-26 17:02:13 +00:00
Ilia Alshanetsky
f06eb4bf8b Fixed test, in some versions of c-client returned value is always uppercase 2006-11-26 16:31:43 +00:00
Ilia Alshanetsky
845c07f560 Fixed test 2006-11-26 16:29:42 +00:00
Ilia Alshanetsky
22ff526e99 Added a meta tag to phpinfo() output to prevent search engines from
indexing the page.
2006-11-26 16:26:18 +00:00
Antony Dovgal
93fc85b2af MFH: fix #39621 (str_replace() is not binary safe on strings with equal length) 2006-11-24 21:59:09 +00:00
Nuno Lopes
e8384cbcca more tests 2006-11-24 20:18:54 +00:00
Nuno Lopes
d64b17543c fix tests after Tony's commit and add a test for the bug he fixed 2006-11-24 15:47:45 +00:00
Antony Dovgal
050e32ed65 fix test 2006-11-24 13:40:43 +00:00
Antony Dovgal
7f235792b3 MFH: fix #39583 (ftp_put() does not change transfer mode to ASCII) 2006-11-24 12:39:39 +00:00
Antony Dovgal
ffb9e15465 fix #39613 (Possible segfault in imap initialization due to missing module dependency)
patch by wharmby at uk dot ibm dot com
2006-11-24 10:28:51 +00:00
Nuno Lopes
94a810755f add tests for 2 old bugs 2006-11-23 20:47:38 +00:00
Nuno Lopes
ba8ba5a909 add two more tests (test bogus parameters and bogus server respsnes) 2006-11-23 17:34:34 +00:00
Ilia Alshanetsky
af16066603 Fixed a possible crash 2006-11-23 14:41:35 +00:00
Ilia Alshanetsky
e8180067b9 Fixed a possible crash in dbase_open() on empty filename. 2006-11-22 17:30:34 +00:00
Pierre Joye
efa9b7e20b - MFH: #39538, fgetcsv can't handle starting newlines and trailing odd
number of backslashes (David Soria Parra, Pierre)
2006-11-22 12:59:49 +00:00
Antony Dovgal
df1a1c8441 MFH: fix #39576 (array_walk() doesn't separate userdata zval) 2006-11-22 10:42:41 +00:00
Antony Dovgal
26ed531c64 add test 2006-11-21 18:17:11 +00:00
Antony Dovgal
e412981f7b remove redundant error message
add test by <zoe dot slattery at googlemail dot com>
2006-11-21 17:42:11 +00:00
Ilia Alshanetsky
57eb7c0bad Adjust previous patch to work better 2006-11-21 15:53:23 +00:00
Antony Dovgal
2f9a9c4248 add new test 2006-11-20 22:17:10 +00:00
Antony Dovgal
c220da74ef MFH test 2006-11-20 20:55:51 +00:00
Marcus Boerger
d4dc662621 - MFH: Fix arginfo 2006-11-20 20:04:03 +00:00
Marcus Boerger
164929d557 - MFH: Add new test 2006-11-20 19:58:01 +00:00
Ilia Alshanetsky
fd8378d7d6 Fixed compiler warnings 2006-11-20 19:04:21 +00:00
Antony Dovgal
39ad6abbf8 fix test on Solaris 2006-11-20 16:28:26 +00:00
Antony Dovgal
296e2a3775 MFH 2006-11-20 11:12:42 +00:00
Nuno Lopes
bd519ae0d9 new tests. what a crazy idea... 2006-11-19 18:37:28 +00:00
Ilia Alshanetsky
714abb7ea1 pack()/unpack() tests 2006-11-19 18:31:07 +00:00
Ilia Alshanetsky
0d338f463c Fixed bug #38770 (unpack() broken with longs on 64 bit machines). 2006-11-19 18:20:48 +00:00
Dmitry Stogov
c06f9e1efe COM initialization/deinitialization are done only if necessary 2006-11-17 11:40:52 +00:00
Nuno Lopes
cb4b75f155 remove old file (which was already removed from 4.4 and HEAD trees) 2006-11-16 18:58:02 +00:00
Ilia Alshanetsky
c7d84b7451 Fixed compiler warnings 2006-11-16 17:33:39 +00:00
Antony Dovgal
cf04587553 fix tests 2006-11-16 13:49:20 +00:00
Antony Dovgal
36d66521c9 add new tests 2006-11-16 13:01:23 +00:00
Hannes Magnusson
cf64728899 renamed to oo_getcomment.phpt 2006-11-16 08:52:15 +00:00
Pierre Joye
426dce9ce3 - mv oo_get_comment.phpt oo_getcomment.phpt 2006-11-15 23:53:46 +00:00
Pierre Joye
c412409164 - MFH: #39217, serialNumber might be -1 when the value is too big 2006-11-15 23:28:06 +00:00
Antony Dovgal
d1acb8d4eb add new tests, improve existing ones 2006-11-15 22:44:29 +00:00
Antony Dovgal
eca1911b72 fix leak, add test 2006-11-15 22:10:19 +00:00
Sara Golemon
2eb308ff75 Backport md2, ripemd256, and ripemd320 algos from HEAD 2006-11-15 20:06:09 +00:00
Pierre Joye
892c00bb9f #9278 and #39506, force the binary mode for the zip operation only. At least I do not have to set/restore it in each function. 2006-11-15 19:14:02 +00:00
Ilia Alshanetsky
82fb3e00b8 Fixed bug #37773 (iconv_substr() gives "Unknown error" when string length =
1").
2006-11-15 18:34:57 +00:00
Antony Dovgal
9d6f7755b8 fix leak appearing when converting object to NULL
add test
2006-11-15 17:29:08 +00:00
Antony Dovgal
84ff4aaf1a add new tests 2006-11-15 17:27:03 +00:00
Pierre Joye
1d61562efe #39506 and PECL #9278, should fix the problem for the other SAPI (works for CLI, CGI and embed)
see: http://news.php.net/php.internals/26606 for the details
2006-11-15 16:24:24 +00:00
Antony Dovgal
70288ef71e fix test on AIX 2006-11-15 12:11:17 +00:00
Antony Dovgal
567aed8316 fix test 2006-11-15 11:27:26 +00:00
Antony Dovgal
60188ad863 fix test 2006-11-15 10:47:26 +00:00
Hannes Magnusson
849a7857ac Fix test (file_put_contents() now uses __toString) 2006-11-15 07:58:02 +00:00
Ilia Alshanetsky
fca0e24410 Added missing object support to file_put_contents(). 2006-11-15 00:20:40 +00:00
Antony Dovgal
6640a1c861 one more test 2006-11-14 22:23:45 +00:00
Antony Dovgal
963b1db67f add new tests 2006-11-14 21:59:57 +00:00
Edin Kadribasic
77986844c8 Tell linker that we're using stati libcurl 2006-11-14 19:57:13 +00:00
Derick Rethans
de50222d1c - MFH: No idea if we actually support 16 bit systems, but this just looked wrong 2006-11-14 14:42:42 +00:00
Pierre Joye
df56d24304 - #39508, do not use the 4 neighbors implementation for small images (w<4)
test will follow
2006-11-14 13:45:24 +00:00
Ilia Alshanetsky
b28cbe8b6f Fixed bug #36812 (pg_execute() modifies input array). 2006-11-13 22:10:37 +00:00
Antony Dovgal
923b785fd1 add new test 2006-11-13 21:27:48 +00:00
Antony Dovgal
017f3ae479 don't forget to close the stream when/if flock() fails 2006-11-13 20:31:27 +00:00
Antony Dovgal
34db368fe4 MFH: fix leaks in get_meta_tags() when used with b0rked HTML
add test
2006-11-13 20:18:12 +00:00
Antony Dovgal
c301119fdf MFH: improve the fix and the test 2006-11-13 19:32:58 +00:00
Ilia Alshanetsky
941c036297 Fixed bug #36644 (possible crash in variant_date_from_timestamp()). 2006-11-13 15:33:26 +00:00
Antony Dovgal
69e0c84522 MFH 2006-11-13 15:00:05 +00:00
Antony Dovgal
a2a20556d8 new test 2006-11-13 14:51:11 +00:00
Antony Dovgal
60a2df7db2 add a note that libxml2 2.6.2x is required 2006-11-13 12:54:04 +00:00
Antony Dovgal
79e4f5fd22 MFH: fix compile warning 2006-11-13 12:49:28 +00:00
Antony Dovgal
b5b8fa4f6b fix test 2006-11-13 12:47:43 +00:00
Hannes Magnusson
a27d73b13d Add missing header installation.. 2006-11-12 19:00:33 +00:00
Ilia Alshanetsky
6e9c7c4aa9 Fixed generated file 2006-11-12 17:55:44 +00:00
Ilia Alshanetsky
c32ed59e4e Fixed a memory leak when named & positional params are being used in the
same query.
2006-11-12 17:49:19 +00:00
Hannes Magnusson
3bf35bbc15 MFH: SplFileObject no longer overwrites SplFileInfo::getFilename() 2006-11-12 17:35:09 +00:00
Ilia Alshanetsky
d4a64fba74 removed bogus char 2006-11-12 17:23:01 +00:00
Hannes Magnusson
1182b325c2 MFH: SplFileObject::getFilename() no longer overwrites SplFileInfo::getFilename()
(SplFileObject::getFilename() therefor only returns the filename now)
2006-11-12 17:16:13 +00:00
Ilia Alshanetsky
e0d385a328 Optimized array functions utilizing php_splice(). 2006-11-12 17:13:22 +00:00
Marcus Boerger
d3bda9a516 - MFH: Correct comments 2006-11-12 15:58:17 +00:00
Hannes Magnusson
7b81e554ae MFH: Fixed bug#36975 (natcasesort() causes array_pop() to misbehave) 2006-11-12 01:14:39 +00:00
Nuno Lopes
7d75155e01 fix leak in oo_stream.phpt 2006-11-12 00:41:16 +00:00
Nuno Lopes
c0b0d0a81a fix leak in the object destrucotr when zip_close() fails (fixes oo_delete.phpt) 2006-11-12 00:31:03 +00:00
Nuno Lopes
232bb79bed fix leaks within zip entries in several tests 2006-11-11 23:43:00 +00:00
Nuno Lopes
b3de830b61 fix leak in oo_setArchiveComment.phpt 2006-11-11 23:35:27 +00:00
Pierre Joye
8cb18e8d64 - fix leak in zip_close when the function's succeeded 2006-11-11 19:06:56 +00:00
Nuno Lopes
94404da606 fix the bug I introduced previously, sorry
anyway, convert the recursive version of the binary search to an iterative one
2006-11-10 23:27:11 +00:00
Antony Dovgal
88e827f3f1 MFH 2006-11-10 23:03:32 +00:00
Antony Dovgal
7563d4f573 fix possible issue with negative values in oci_set_prefetch
(reported by Chris Jones)
2006-11-10 20:13:36 +00:00
Nuno Lopes
ec46e5e510 mark a few variables and functions as static 2006-11-10 18:05:11 +00:00
Nuno Lopes
fe8e53f7a7 mark the binary search delimiters as unsigned, so that the compiler can use a quick shift operation 2006-11-10 17:32:15 +00:00
Antony Dovgal
4106eee7c7 fix segfault in ZTS mode when statements containing sub-statements are destroyed in wrong order 2006-11-10 16:33:41 +00:00
Dmitry Stogov
31bfc6e55b Fixed bug #39454 (Returning a SOAP array segfaults PHP) 2006-11-10 15:05:22 +00:00
Dmitry Stogov
a4a77d3f91 Intialization code is moved from request startup to module startup 2006-11-10 12:02:10 +00:00
Dmitry Stogov
532b02cd19 Implemented registry cache that prevent registry lookup on each request. In case of modification of corresponding registry-tree PHP will reload it automatic. 2006-11-10 11:42:07 +00:00
Dmitry Stogov
a930751112 Faster and better licensed implementation 2006-11-10 10:10:38 +00:00
Ilia Alshanetsky
126be8ec7c Added missing API declarations. 2006-11-10 01:28:59 +00:00
Ilia Alshanetsky
f06762b361 Fixed pecl bug #9179 (phpversion("filter") shows wrong version). 2006-11-10 01:08:17 +00:00
Ilia Alshanetsky
ddae41877f Added missing PHPAPI declaration 2006-11-09 20:01:41 +00:00
Nuno Lopes
fb06fa19e3 fix test for non English guys 2006-11-09 16:38:28 +00:00
Nuno Lopes
98dd25e04c fix an invalid read + invalid free() 2006-11-09 16:33:07 +00:00
Nuno Lopes
d6802e1022 statification of local functions and variables.
also remove a few uneeded global variables
interesting new warnings:
/cvs/php5/ext/xmlwriter/php_xmlwriter.c:391: warning: 'xmlwriter_objects_clone' defined but not used
/cvs/php5/ext/xmlwriter/php_xmlwriter.c:1281: warning: 'zif_xmlwriter_start_dtd_entity' defined but not used
/cvs/php5/ext/xmlwriter/php_xmlwriter.c:1325: warning: 'zif_xmlwriter_end_dtd_entity' defined but not used
/cvs/php5/ext/xmlwriter/php_xmlwriter.c:1333: warning: 'zif_xmlwriter_write_dtd_entity' defined but not used
2006-11-09 16:04:34 +00:00
Frank M. Kromann
87b412dc3a Revert patch for warnings about missing headers. These are fixed in the latest version of libming.
Sync code for SWFMovie::streamMP3. This function will now return the number of frames in the file.
2006-11-09 09:19:21 +00:00
Dmitry Stogov
25f01e8ec3 Fixed tests 2006-11-09 08:29:18 +00:00
Dmitry Stogov
84b9dcb73f Fixed bug #38536 (SOAP returns an array of values instead of an object) 2006-11-08 10:05:19 +00:00
Ilia Alshanetsky
d6b3b73490 Fixed tests 2006-11-07 20:24:38 +00:00
Ilia Alshanetsky
887b3484f7 Fixed bug #39398 (Booleans are not automatically translated to integers). 2006-11-07 17:57:17 +00:00
Johannes Schlüter
c65a1f10cb - MFH: No C++ comments (fix #39414) 2006-11-07 15:19:11 +00:00
Hannes Magnusson
69dbaaacac MFH: arginfo fixes 2006-11-06 23:20:11 +00:00
Ilia Alshanetsky
07cdfefdee Fixed bug #39350 (crash with implode("\n", array(false))). 2006-11-06 17:21:05 +00:00