Compare commits

..
Author SHA1 Message Date
SVN Migration 7a8e322e20 This commit was manufactured by cvs2svn to create tag 'php_5_2_9RC2'. 2009-02-12 20:29:37 +00:00
Ilia Alshanetsky 46a6126e34 5.2.9RC2 2009-02-12 20:29:36 +00:00
Moriyoshi Koizumi afeef64609 * Update for bug #47370. 2009-02-12 18:32:14 +00:00
Moriyoshi Koizumi d719c020e6 * MFH: Fix bug #47370 (BC breakage of array_unique()) 2009-02-12 18:30:31 +00:00
Kalle Sommer Nielsen d9e457bbad MFH: Fixed wrong usage of error_reporting directive 2009-02-12 14:37:27 +00:00
Scott MacVicar 921ea6a428 MFH Fix bug #45989 - json_decode() doesn't return NULL on certain invalid strings 2009-02-12 00:36:23 +00:00
Scott MacVicar 519e4c1158 MFH Fix bug #46944 - UTF-8 characters outside the BMP aren't encoded correctly.
Forgot to merge this back in January
2009-02-12 00:15:46 +00:00
Felipe Pena 2a9bb86383 MFH: Fixed test bug #47311 (PDO::PARAM_LOB columns need to be bound before execute() on PgSQL) 2009-02-11 10:44:48 +00:00
Antony Dovgal a19fb50fd6 add test 2009-02-11 10:02:28 +00:00
Antony Dovgal 120b469bb4 MFH: fix bug #47353 (crash when creating a lot of objects in object destructor) 2009-02-11 09:58:58 +00:00
Antony Dovgal 49cf106aa4 MFH: fix check for zend_extension type 2009-02-11 09:11:35 +00:00
Scott MacVicar 5ee54f12af MFH Fix debug builds for OSX, PHP_DEBUG is set to 1 at the top 2009-02-11 00:08:44 +00:00
Ilia Alshanetsky c752e95c36 MFB: Adjust condition 2009-02-10 16:14:27 +00:00
Ilia Alshanetsky 3b4540f926 Fixed typo 2009-02-10 14:21:10 +00:00
Ilia Alshanetsky 0cb1a19851 Added path truncation E_NOTICE to let people now when path resolving caused
the file path to be truncated.
2009-02-10 14:18:29 +00:00
Felipe Pena 54f742e30d - MFH: Fix tests 2009-02-09 16:59:47 +00:00
Ilia Alshanetsky 6d3be89192 MFB: Initialize optional var 2009-02-09 15:34:32 +00:00
Felipe Pena 8d06c2cf2a - MFH: Fix test 2009-02-09 12:56:09 +00:00
Felipe Pena 99afacffcd - MFH: Fix mem. leak 2009-02-09 12:07:35 +00:00
Felipe Pena 09f6582694 - MFH: Fixed test 2009-02-09 11:58:02 +00:00
Greg Beaver 300f28b58e MFB fix Bug #46026 (this is a refinement of the previous fix) 2009-02-09 03:44:59 +00:00
Ilia Alshanetsky fcc80dcb86 MFB52: Fixed bug #44874 (dead pfsockopen'ed sockets aren't reaped when the
remote end restarts)

# Patch by Richard dot Krehbiel at gmail dot com
2009-02-08 16:54:43 +00:00
Antony Dovgal 0136b5cec6 fix typo 2009-02-06 10:42:54 +00:00
Felipe Pena 79f0466eff - Improve test 2009-02-06 10:40:42 +00:00
Felipe Pena ac2a97209b - MFH: Fixed bug #47322 (sscanf %d does't work) 2009-02-06 10:22:34 +00:00
Moriyoshi Koizumi c940701612 - MFH: Fix bug #45239 (encoding detector hangs with mbstring.strict_detection
enabled).
2009-02-06 08:49:05 +00:00
Ilia Alshanetsky f492ccfec6 Back to dev 2009-02-05 20:56:12 +00:00
Ilia Alshanetsky c77343ea9e 5.2.9RC1 2009-02-05 20:53:45 +00:00
Pierre Joye 34f117411e - zip fix entry 2009-02-05 19:53:43 +00:00
Pierre Joye 74f431ed45 - Fixed a crash on extract in zip when files or directories entry names contain
a relative path. (affects only 5.2 as it is a limitation in 5.2's virtual_file_ex)
2009-02-05 19:53:22 +00:00
Felipe Pena 4cf377704b - MFH: Fixed bug #47297 (pdo_033.phpt fails on PgSQL)
Patch by matteo at beccati dot com
2009-02-04 16:41:18 +00:00
Ilia Alshanetsky c4a9c79e28 Syn spprintf fix with that of 5.3 and above 2009-02-04 15:03:12 +00:00
Ilia Alshanetsky 7f2d38d966 Return empty string when recv() does not fetch any data 2009-02-03 19:22:40 +00:00
Ilia Alshanetsky 6131780061 MFB: Fixed bug #47282 (FILTER_VALIDATE_EMAIL is marking valid email
addresses as invalid)
2009-02-02 23:51:58 +00:00
Felipe Pena 1ad22f19e2 - MFH: Fixed bug #47269 (Typo: SoapSlient instead of SoapClient) 2009-02-02 10:00:32 +00:00
Moriyoshi Koizumi 90d7d1004c - MFH: Fix bug #46843 (CP936 euro symbol is not converted properly) 2009-02-02 04:54:11 +00:00
David Soria Parra f148e5a64f MFH: Fix a typo 2009-02-01 21:52:32 +00:00
Ilia Alshanetsky e721d542ee Fixed a possible invalid read when string is not null terminated 2009-02-01 19:42:48 +00:00
andy wharmby 9acebf6f4a New set_magic_quotes() tests. Tested on Windows, Linux and linux 64 2009-02-01 19:29:34 +00:00
andy wharmby cccb875ecd New php_uname() tests. Tested on Windows, Linux and linux 64 2009-02-01 19:17:50 +00:00
andy wharmby a43447aad6 New get_defined_vars(), get_included_files(), get_magic_quotes() and getmypid() tests. Tested on Winows, Linux and Linux 64 2009-02-01 18:55:28 +00:00
andy wharmby 008ca451c1 New escapeshellarg() tests. Tested on Windows, Linux and Linux 64 2009-02-01 18:39:52 +00:00
andy wharmby b43e2722ab New floatval() tests. Tested on Windows, Linux and Linux 64 2009-02-01 18:32:42 +00:00
Felipe Pena a7e664e216 - MFH: Fixed bug #47255 (Typo in php.ini files) 2009-01-31 19:26:02 +00:00
Kalle Sommer Nielsen 783b7b5cac MFH: Fix arginfo for imagefilter() 2009-01-31 15:28:34 +00:00
Felipe Pena 23b814a8b7 - MFH: Fix test 2009-01-30 14:50:38 +00:00
Ilia Alshanetsky adfdb7a77f MFB: Improved validation checks inside str_pad() 2009-01-30 00:17:05 +00:00
Scott MacVicar d84d3e47f3 Fix bug #47245 - Double free in mb_detect_encoding() 2009-01-29 22:58:52 +00:00
Johannes Schlüter ca779b84f9 - Add .cvsignore 2009-01-28 22:35:50 +00:00
Antony Dovgal 23db743e46 fix test 2009-01-28 12:59:08 +00:00
Felipe Pena 0e3465a61f MFH:
- Fix compile warning
- Fixed test
2009-01-27 15:02:43 +00:00
Felipe Pena 13ac985397 - Fixed parameter format 2009-01-27 14:44:07 +00:00
Felipe Pena 855e9fb998 - Removed wrong '/' in parameter format 2009-01-27 14:40:13 +00:00
Felipe Pena 42b58608e5 - Fixed tests 2009-01-27 14:32:59 +00:00
andy wharmby 7f4cdc8719 Split-ip var_export.phpt and add new error tests. Tested on Windows, Linux and Linux 64 bit 2009-01-26 22:27:05 +00:00
David Soria Parra f60f40afaa Fix indention 2009-01-26 21:27:41 +00:00
Rob Richards 3ba6c9f870 BFN 2009-01-26 19:12:10 +00:00
Rob Richards 566babac58 MFH: fix bug #47220 (segfault in dom_document_parser in recovery mode) 2009-01-26 19:11:19 +00:00
Ilia Alshanetsky 3959313932 MFB: Fixed bug #47217 (content-type is not set properly for file uploads) 2009-01-26 15:25:25 +00:00
Dmitry Stogov a012002652 Fixed bug #46419 (Elements of associative arrays with NULL value are lost) 2009-01-26 11:09:14 +00:00
Antony Dovgal 78c4bc3086 MFH use example.com 2009-01-25 23:28:18 +00:00
andy wharmby a12e0a69b8 Split is_callable test. Test on Windows, Linux and Linux 64 bit 2009-01-25 22:16:28 +00:00
Ilia Alshanetsky 38969d726b MFB: Improved fix for bug #47174 & added a test 2009-01-25 18:27:39 +00:00
David Soria Parra 49b4865adb MFH: Fix compiler warning. munmap expects a void pointer. 2009-01-25 14:04:09 +00:00
David Soria Parra 8b52d17a9b MFB: Fix WS 2009-01-25 13:42:39 +00:00
David Soria Parra 8d362208e1 MFH: Fix WS 2009-01-25 13:41:01 +00:00
Zoe Slattery 29980934c0 Added INI sections 2009-01-25 11:08:21 +00:00
Sebastian Bergmann 612a5d30db MFH: Patch by David Soria Parra <dsp@php.net>. 2009-01-25 11:07:56 +00:00
Antony Dovgal 09ec05ee72 fix test 2009-01-24 22:03:06 +00:00
Antony Dovgal 59305cdc08 add missing .cvsignore 2009-01-24 13:01:06 +00:00
andy wharmby c9745da78e New get_extension_funcs() and getrusage() tests. Tested on Windows, Linux and Linux 64 bit 2009-01-24 12:47:31 +00:00
andy wharmby 8ce15a6cc3 Make test more robust; avoid hangs if fsockopen() fails. Tested on Windows, Linux and Linux 64 bit 2009-01-23 23:49:31 +00:00
andy wharmby 39c67fe48d New gzuncompress() test.Tested on WIndows, Linux and Linux 64 bit 2009-01-23 23:31:48 +00:00
andy wharmby 7861cec3ef Fix tests. Add missing SKIPIF. Tested on Windows, Linux and Linux 64 2009-01-23 20:23:25 +00:00
Dave Kelsey 58ed732623 deleted invalid test. 2009-01-23 18:56:57 +00:00
Dave Kelsey 22f64f09f2 added some mail tests. Tested on windows, linux and linux 64bit 2009-01-23 17:12:19 +00:00
Dave Kelsey 71376a9789 various network tests. tested on windows, linux, linux 64 bit 2009-01-23 15:34:27 +00:00
Zoe Slattery b0ef277d3a IMPA fetchheader tests 2009-01-23 15:32:48 +00:00
andy wharmby 3f2bc9daa6 Fix names of new image files. 2009-01-23 11:18:31 +00:00
andy wharmby 3371e54109 New image tests. Tested on WIndows, Linux and Linux 64 bit 2009-01-22 22:59:51 +00:00
Pierre Joye 5f21f1e7c8 - call the right script 2009-01-22 22:07:21 +00:00
Dave Kelsey e815e613ac fstat tests. tested on windows, linux and linux 64 bit 2009-01-22 20:49:50 +00:00
andy wharmby 21aa7d168a New date tests for getdate() and gmstrftime(). Tested on WIndows, Linux and Linux 64 bit 2009-01-22 18:47:34 +00:00
Dave Kelsey d34a68db52 final collection of zlib tests. tested on linux, windows and linux 64 bit 2009-01-22 14:15:01 +00:00
andy wharmby 18e73c14a2 New basic time()and microtime() tests. Tested on Windows, Linux and Linux 64 bit 2009-01-22 14:11:12 +00:00
andy wharmby 3cdae46259 Fix test after #46732 fix. Tested on WIndows, Linux and Linux 64 bit 2009-01-22 13:50:33 +00:00
andy wharmby a7653d9485 New image tests. Tested on Windows, LInux and Linux 64 bit 2009-01-22 13:27:22 +00:00
Dave Kelsey 81af2ad666 fixed subtle bugs regarding attempting to chdir, plus cleanup issues. improved tempnam test, removed hardcoded line number. tested on windows, linux and linux 64bit. 2009-01-22 07:57:09 +00:00
andy wharmby 0d6a4b2d12 Fix test 2009-01-22 00:23:05 +00:00
Jani Taskinen b60437a4ad MFH: fix typo 2009-01-21 19:23:03 +00:00
Ilia Alshanetsky 3a78a01817 MFB: Fixed bug #47174 (base64_decode() interprets pad char in mid string as
terminator)
2009-01-21 15:45:29 +00:00
Derick Rethans aa6595916b - Updated to version 2009.1 (2009a) 2009-01-21 15:25:24 +00:00
Dave Kelsey 3fc347d251 new tests for zlib extension, tested on windows, linux and linux64 2009-01-21 15:24:16 +00:00
Antony Dovgal 7631655051 fix tests 2009-01-21 12:49:39 +00:00
andy wharmby a16133c719 New gzuncompress() test. php6 tets fails currentlly due to #47179. Tested on Windows, Linux and Linux 64 bit 2009-01-21 12:28:35 +00:00
andy wharmby e6bca5b8a5 New gzencode() test. php6 tets fails currentlly due to #47178. Tested on Windows, Linux and Linux 64 bit 2009-01-21 11:39:14 +00:00
Sanjay Mantoor 677debbd11 New testcases for strftime function 2009-01-21 10:52:34 +00:00
Dave Kelsey 5cebc6e703 Some basic tests for mime_magic. Tested on windows only 2009-01-21 10:46:38 +00:00
Dmitry Stogov 85489ac01a Fixed bug #47165 (Possible memory corruption when passing return value by reference) 2009-01-21 10:15:49 +00:00
andy wharmby 21e8496b72 New gzinflate() error test. Tested on WIndows, Linux and Linux 64 bit 2009-01-20 23:37:50 +00:00
andy wharmby 7d1ff9b203 Fix SKIPIF logic 2009-01-20 23:19:48 +00:00
andy wharmby 574a268345 New stripcslashes() tests. Tested on Window, Linux and Linux 64 bit 2009-01-20 22:54:41 +00:00
Ilia Alshanetsky 32ecd29b07 MFB: Added an E_NOTICE when precision value is truncated 2009-01-20 18:03:19 +00:00
Felipe Pena 91ec3a8141 - MFH: Fixed bug #47152 (gzseek/fseek using SEEK_END produces strange results) 2009-01-20 15:43:06 +00:00
andy wharmby 17bf5aa167 New vfprintf() tests. Tested on Window, Linux and Linux 64 bit 2009-01-20 14:19:43 +00:00
Felipe Pena 3404865719 - MFH: Added missing "return;" 2009-01-20 00:47:03 +00:00
Ilia Alshanetsky a0d1b54bf1 Fixed bug #47131 (SOAP Extension ignores "user_agent" ini setting). 2009-01-19 21:57:46 +00:00
David Soria Parra 72eeac2581 MFH: Fix #47149. Remove check for script_filename = path_translated, as this the actual value that we get from apache. 2009-01-19 18:17:59 +00:00
andy wharmby a55dc942cd New substr_replace() and unpack() error tests. Tested on Windows, Linux and Linux 64 bit. 2009-01-19 17:13:16 +00:00
andy wharmby c72618c48c New vprintf() tests. Tested on Windows, Linux and Linux 64 bit. 2009-01-19 16:03:35 +00:00
andy wharmby e9148ca0e3 New strval() tests. Tested on Windows, Linux and Linux 64 bit. 2009-01-19 15:54:43 +00:00
andy wharmby 64c8147b91 New tests for str_pad(), str_shuffle(), stristr() and strlen(). Tested on WIndows, Linux and Linux 64 bit 2009-01-19 15:46:31 +00:00
Antony Dovgal 910107f3f4 MFH: fix memleaks in sscanf() 2009-01-19 14:41:52 +00:00
Dave Kelsey ae37ab1364 new tests for zlib extension, tested on windows, linux and linux64 2009-01-19 14:03:18 +00:00
Felipe Pena 9c1837e8da - MFH: Fixed bug #47048 (Segfault with new pg_meta_data) 2009-01-18 23:51:15 +00:00
andy wharmby 8d1e2fdfda Port similar_text test to 5.2. Tested on Windows, Linux and Linux 64 bit 2009-01-18 23:11:06 +00:00
andy wharmby 4db72b092f New nl_langinfo(), number_format() and ord() tests. Tested on Windows. Linux and Linux 64 bit 2009-01-18 22:50:58 +00:00
andy wharmby 921ed1e76e New hebrev() and hebrevc() tests. Tested on Windows. Linux and Linux 64 bit 2009-01-18 21:59:33 +00:00
andy wharmby 942cea640f New sha1f() tests. Tested on Windows. Linux and Linux 64 bit 2009-01-18 19:37:41 +00:00
andy wharmby 9331f6554a New sscanf() tests. Tested on Windows. Linux and Linux 64 bit 2009-01-18 14:40:21 +00:00
andy wharmby 4b9d2da517 New explode() tests. Tested on Windows. Linux and Linux 64 bit 2009-01-18 14:34:52 +00:00
Felipe Pena 3ed65d36f9 - New tests 2009-01-18 13:28:58 +00:00
Felipe Pena ffccfdd9ec - Fixed test 2009-01-18 13:28:03 +00:00
andy wharmby 157f45242a New money_format() tests. Tested on Windows, Linux and Linux 64 bit 2009-01-17 22:52:41 +00:00
Felipe Pena d9a51ce483 - New test 2009-01-17 17:34:45 +00:00
Felipe Pena a92f5edb70 - BFN #46282 2009-01-17 17:24:59 +00:00
Felipe Pena 30dbcfe1c8 - Fixed bug #46282 (Corrupt DBF When Using DATE)
Patch by: arne at bukkie dot nl
2009-01-17 17:21:49 +00:00
andy wharmby e0c2374a93 New trim() tests. Tested on Windows, Linux and Linux 64 bit 2009-01-17 16:41:32 +00:00
andy wharmby 91eb3c5a54 New ltrim() tests. Tested on Windows, Linux and Linux 64 bit 2009-01-17 15:48:24 +00:00
andy wharmby 89af9ac202 New string tests. Tested on Windows, Linux and Linux 64 bit 2009-01-16 22:46:31 +00:00
andy wharmby 85261c8268 New string function tests. Tested on Windows, Linux and Linux 64 bit. 2009-01-16 12:53:40 +00:00
Jani Taskinen c542cf02a1 MFH:- Fixed bug #47104 (Linking shared extensions fails with icc) 2009-01-15 14:38:19 +00:00
Dmitry Stogov 8b93b4e373 Fixed possible crash because of argument stack reallocation 2009-01-15 14:23:42 +00:00
andy wharmby b26e125eda New test for strripos() string function. All tests checked on Windows, Linux and Linux 64 bit. 2009-01-15 13:40:22 +00:00
Dmitry Stogov 84d76e82bb Fixed bug #47109 (Memory leak on $a->{"a"."b"} when $a is not an object) 2009-01-15 08:48:41 +00:00
Antony Dovgal 53e5f104e4 fix typo 2009-01-14 16:32:02 +00:00
andy wharmby a3409dc80d Fix date_suninfo_tests; add missing date_default_timezone_set() to ensure they PASS when run in any timezone. Tested on WIndows, Linux and Linux 64bit. 2009-01-14 16:28:54 +00:00
andy wharmby 638ced7d36 Fixed base64_decode variation tests and new base64_encode test. Tested on Windows, Linux and Linux64 bit 2009-01-14 14:39:20 +00:00
Jani Taskinen e649bf4aa6 Fix order 2009-01-14 10:51:35 +00:00
andy wharmby 9a86c92895 Fix new date tests. Tested on Windows, Linux and Linux 64 bit 2009-01-13 23:10:52 +00:00
Andrei Zmievski ddccfe7a12 *** empty log message *** 2009-01-13 19:25:20 +00:00
Andrei Zmievski d305bc31aa Fix bug #44336 in PHP 5.2 as well. 2009-01-13 19:23:31 +00:00
andy wharmby b405a2c230 Fix test. Tested on Windows, Linux and Linux 64 bit 2009-01-13 18:51:50 +00:00
andy wharmby 92926978a2 New date extension tests. Tested on Windows, Linux and Linux 64 bit 2009-01-13 13:38:34 +00:00
Antony Dovgal 07fb812d50 fix test 2009-01-13 12:01:00 +00:00
andy wharmby 056c0c4324 New zlib extension tests. Tested on Windows, Linux and Linux 64 bit 2009-01-13 10:08:48 +00:00
andy wharmby 984f01c1ed New math tests. Tested on Windows, Linux and Linux 64 bit 2009-01-12 17:56:45 +00:00
andy wharmby e2e013662d Fix Windows tests after #47037 2009-01-12 15:59:20 +00:00
andy wharmby 1ea392bb55 New math tests. Tested on Windows, Linux and Linux 64 bit 2009-01-12 14:31:07 +00:00
Scott MacVicar b3e3d679c5 MFH The previous error was masked by a missing entry, sync them back up. 2009-01-12 14:30:21 +00:00
Scott MacVicar 7f512a75b7 MFH This entry doesn't exist upstream any more, it also caused all error messages to be one off. 2009-01-12 13:42:15 +00:00
Rob Richards b09626373f BFN 2009-01-11 12:03:43 +00:00
Rob Richards 5db40d5a2f MFH: fix bug #45996 (libxml2 2.7 causes breakage with character data in xml_parse()) 2009-01-11 12:01:55 +00:00
Felipe Pena 646a8aabba - MFH Fix SEGV if get_method() returns a non bound function 2009-01-10 20:30:48 +00:00
Felipe Pena a0f2b8ff27 - Removed entry (not solved yet) 2009-01-10 17:39:28 +00:00
Felipe Pena 4b06c31923 - MFH: Fixed test (patch by Timm Friebe [thekid@php]) 2009-01-10 17:07:33 +00:00
Antony Dovgal 3c001f3279 cleanup garbage 2009-01-09 23:17:01 +00:00
Antony Dovgal fa4b164375 fix test: don't create tmp files in "." and clean up when done 2009-01-09 23:11:52 +00:00
David Soria Parra aa3fc14911 MFH: Fixed bug #47042 (PHP cgi sapi is removing SCRIPT_FILENAME for non apache). 2009-01-09 22:14:20 +00:00
Jani Taskinen 20eee2e5e4 fix news 2009-01-09 07:17:57 +00:00
Sanjay Mantoor c5d0d152a9 New testcases for localtime function 2009-01-09 05:08:44 +00:00
Felipe Pena ab029cf81a - Fixed tests 2009-01-09 02:35:37 +00:00
Antony Dovgal 7bad8ec1ca fix tests 2009-01-08 22:03:40 +00:00
Andrei Zmievski 7ac1f7eee7 Handle __call() on protected/private method access for callbacks too. 2009-01-08 21:39:06 +00:00
andy wharmby c957a3ae9c New PHPT tests for math functions (batch 1 of 3). Tested on Windows, Linux and Linux 64 bit. 2009-01-08 21:21:17 +00:00
Felipe Pena a6f3a6b470 - MFH: Fixed tests 2009-01-08 20:03:32 +00:00
Felipe Pena e28ad0cd28 MFH:
- Fixed bug #47037 (No error when using fopen with emty string)
Patch by Cristian Rodriguez R.
2009-01-08 19:21:25 +00:00
Arnaud Le Blanc d6296c9f33 MFH: XFAIL test 2009-01-08 18:58:46 +00:00
Arnaud Le Blanc b27f9a96e7 MFH:
Fix memleak when a user filter appends a bucket and returns != PSFS_PASS_ON
Improved tests
2009-01-08 18:40:56 +00:00
Felipe Pena 3af972a44b - BFN #47035 2009-01-08 17:28:08 +00:00
Felipe Pena 6c3a5e8d05 - MFH: Fixed bug #47035 (dns_get_record returns a garbage byte at the end of a TXT record) 2009-01-08 17:20:21 +00:00
Arnaud Le Blanc b512bab367 MFH: Fixed error conditions handling in stream_filter_append() 2009-01-08 17:03:42 +00:00
andy wharmby 74469110b3 Fix bogus file tests - addresses 2 failures in PHP GCOV reports. Tested on Windows, Linux and Linux 64 bit 2009-01-08 10:41:07 +00:00
Andrei Zmievski 518f9a3586 MFB 2009-01-08 00:39:15 +00:00
Antony Dovgal 0d08b726b2 MFH: fix test 2009-01-07 21:23:18 +00:00
Felipe Pena a49254c325 MFH:
- Added check for EWOULDBLOCK
- Using EWOULDBLOCK instead of EAGAIN by portability issues
(Related to #46917)
2009-01-07 20:41:47 +00:00
Felipe Pena 80589d3bf6 - Fixed test 2009-01-07 20:33:06 +00:00
Felipe Pena 6324a1f35c - Revert in this branch (attention++, thanks Hannes :D) 2009-01-07 17:38:13 +00:00
Felipe Pena bbced47e80 - BFN #47029 2009-01-07 17:26:20 +00:00
Felipe Pena ddb4a69a98 - Fixed bug #47029 (quoted_printable_decode() produces duplicate warning)
Patch by Andy wharmby
2009-01-07 17:24:20 +00:00
andy wharmby bf29902c14 New pcre extension tests. Tested on Windows, Linux and Linux 64-bit 2009-01-07 14:49:56 +00:00
Derick Rethans 3c15c00891 - MFH: Fixed bug #47027 (var_export doesn't show numeric indices on ArrayObject). 2009-01-07 14:36:49 +00:00
andy wharmby 3247a9c40b New hash extension tests. Tested on Windows, Linux and Linux 64-bit 2009-01-07 14:33:00 +00:00
Uwe Schindler f732dfba27 MFH: the #ifdef was never working. If Sun extends its NSAPI to support subrequests, much of this code must be rewritten. Because of that it is better to have a clean start. This commit does not change behaviour. 2009-01-06 13:46:49 +00:00
Felipe Pena 7c1d04ece1 - BFN #46701 2009-01-06 01:33:16 +00:00
Felipe Pena cde0b736c5 MFH:
- Fixed bug #46701 (Creating associative array with long values in the key fails on 32bit linux)
Patch by Shire
2009-01-06 01:29:22 +00:00
Felipe Pena 3be9fae529 - BFN 2009-01-05 22:27:31 +00:00
Felipe Pena df71cbc0d5 - Fixed bug #46760 (SoapClient doRequest fails when proxy is used) [only in this branch] 2009-01-05 22:16:58 +00:00
Antony Dovgal 962243af08 create temporary db in the current dir and cleanup on completion 2009-01-05 16:01:45 +00:00
Antony Dovgal 217b40b1aa MFH: Fix build where __USE_GNU is used instead of _GNU_SOURCE to define utsname.domainname
(c) felipe, Sun Jun 22 21:45:42 2008 UTC
2009-01-04 15:08:34 +00:00
Felipe Pena 67bbebf598 - BFN 2009-01-03 17:02:55 +00:00
Kalle Sommer Nielsen b47ae1bdb7 MFH:
* Redirect the "1 file(s) copied" message to nul
* Check if configure script was copied, and output an error if it wasn't
2009-01-03 03:27:47 +00:00
Felipe Pena 38d47b02df - MFH: Windows part 2009-01-03 00:06:59 +00:00
Felipe Pena e812a31c9b - MFH: Errr, rule nº 1: be portable :) 2009-01-02 21:43:07 +00:00
Felipe Pena 11c47b663f - MFH: Working with unintialized errno (#46917, noticed by Jost Boekemeier) 2009-01-02 21:29:04 +00:00
Scott MacVicar 1f4754a0bf Duplicate INI sections 2009-01-02 12:13:10 +00:00
Andi Gutmans 3fc970cc4f - MF PHP_5_3 2009-01-02 05:00:35 +00:00
Pierre Joye ed32a8a6e2 - news entry for #46985 and zip property read 2009-01-02 00:17:44 +00:00
Pierre Joye ab61e0138e - MFH: fix filename property read 2009-01-02 00:12:29 +00:00
Pierre Joye 597f0acfaa - restore overwrite feature (regression introduced in 5.2.8) 2009-01-01 19:32:45 +00:00
Pierre Joye 704599d3a9 - restore fix for binary mode on win (regression introduced in 5.2.8) 2009-01-01 19:32:24 +00:00
Zoe Slattery 71539c429e removing xfail sections as test passes 2008-12-31 20:17:41 +00:00
Zoe Slattery 3f41dea857 new test from Nat Mcugh 2008-12-31 20:07:47 +00:00
Zoe Slattery 575e56649c Fixed bug #46845 Test expected to fail, but pass, don't cause error 2008-12-31 17:37:21 +00:00
Felipe Pena c6dca00fbb - BFN 2008-12-31 15:42:43 +00:00
Felipe Pena 154d823ad0 - MFH: Fixed bug #46973 (IPv6 address filter rejects valid address) 2008-12-31 15:39:48 +00:00
Sebastian Bergmann ef49b9a8de MFH: Bump copyright year, 3 of 3. 2008-12-31 11:17:49 +00:00
Sebastian Bergmann 83a893a5d6 MFH: Bump copyright year, 2 of 3. 2008-12-31 11:16:23 +00:00
Sebastian Bergmann b9259ff9d1 MFH: Bump copyright year, 1 of 3. 2008-12-31 11:16:12 +00:00
Ant Phillips 73ef7ed458 Revert to the previous version for these tests as they were overwritten by mistake (checked on Windows but not on Linux... so the six skipped tests may not work correctly... but they should be ok and I'll watch the test results). 2008-12-31 10:36:10 +00:00
Ant Phillips 8fd7172306 Revert to the previous version for these tests as they were overwritten by mistake (checked on Windows but not on Linux... so the six skipped tests may not work correctly... but they should be ok and I'll watch the test results). 2008-12-31 10:18:20 +00:00
Ilia Alshanetsky 132ad2d26c Fixed bug #46964 (Fixed pdo_mysql build with older version of MySQL). 2008-12-30 19:10:59 +00:00
Ant Phillips 8bddde3f80 Revert to the previous version for these tests as they were overwritten by mistake (checked on Windows but not on Linux... so the six skipped tests may not work correctly... but they should be ok and I'll watch the test results). 2008-12-30 17:11:57 +00:00
Ant Phillips aa90a2d3e0 Revert to the previous version for these tests as they were overwritten by mistake (checked on Windows but not on Linux... so the six skipped tests may not work correctly... but they should be ok and I'll watch the test results). 2008-12-30 17:06:50 +00:00
Zoe Slattery 0f1d65592b re-adding skipifs 2008-12-30 15:36:45 +00:00
Zoe Slattery f8bcc8c15f removed commented out SKIPIF 2008-12-30 13:06:25 +00:00
Scott MacVicar 3813ffa6f9 BFN 2008-12-29 15:44:49 +00:00
Scott MacVicar 9c332b4b9e Fix bug #46959 - Can't disable PCRE in 5.2.x, too much was backported from 5.3. 2008-12-29 15:27:11 +00:00
Jani Taskinen 52252ef91d - Fix news 2008-12-29 10:02:22 +00:00
Brian Shire 29401ca5a9 MFH: fix explode behavior to respect negative limit when string is empty. 2008-12-27 05:20:27 +00:00
Arnaud Le Blanc e27731f3db MFH: Fixed bug #46873 (extract($foo) crashes if $foo['foo'] exists) 2008-12-27 03:07:46 +00:00
Felipe Pena 0540f6ddb1 - Errr, that is 32bit. and cosmetic 2008-12-25 13:40:59 +00:00
Felipe Pena dd44c11b55 - Fix tests for different platforms 2008-12-25 13:30:38 +00:00
Felipe Pena bedf300691 - Fix test 2008-12-25 13:21:35 +00:00
Felipe Pena 43c88da822 - Fixed tests (because we get different error message on different SO) 2008-12-25 12:15:51 +00:00
Felipe Pena 99e6a560dc - Fixed BC in array_unique (HASH_OF stuff), warning and CS in another part 2008-12-25 11:05:19 +00:00
Felipe Pena 89e6d5bd22 - MFH: Fixed memory leak in imap_rfc822_parse_adrlist 2008-12-24 13:31:40 +00:00
Felipe Pena e7057c6825 - New test 2008-12-24 11:51:29 +00:00
Felipe Pena 584ced66d5 BFN 2008-12-24 11:32:45 +00:00
Felipe Pena a1a4c02290 - Fixed bug #46918 (imap_rfc822_parse_adrlist host part not filled in correctly) [only in this branch] 2008-12-24 11:24:38 +00:00
Sanjay Mantoor a2de42599b New testcases for idate function 2008-12-23 09:13:28 +00:00
Sanjay Mantoor 8867ffc100 New testcases for gmmktime function 2008-12-23 07:47:00 +00:00
Scott MacVicar 99614941d7 MFH: Invalid string causes segfault within json_decode() 2008-12-19 02:13:41 +00:00
Scott MacVicar b5ca904be2 Add name of reported to security issues because we apparently need to let everyone know. 2008-12-18 21:05:55 +00:00
Derick Rethans 9fbc798d63 - Added a test case for bug #46268. (Bug itself is not present in 5.2). 2008-12-18 20:30:06 +00:00
Ilia Alshanetsky 444aba4d5f MFB: Fixed bug #46887 (Invalid calls to php_error_docref()) 2008-12-18 20:08:00 +00:00
Pierre Joye abda35380f - MFH: export php_scandir and php_alphasort 2008-12-18 17:41:59 +00:00
Arnaud Le Blanc 3572d5f2b0 MFH: Fixed test 2008-12-18 16:05:14 +00:00
Robin Fernandes dae1582b66 Additional output buffering tests. 2008-12-18 15:20:46 +00:00
Derick Rethans e3388ff043 - MFH: Fixed bug #46889: Memory leak in strtotime(). 2008-12-18 14:57:04 +00:00
Stanislav Malyshev e179d4e86b bug #46005 -> 5.2 2008-12-18 14:29:38 +00:00
Stanislav Malyshev d3dce9e02e MFH fix #46005 2008-12-18 14:28:35 +00:00
Ilia Alshanetsky eaa3298b4a MFB: remove fprintf usage 2008-12-17 21:45:31 +00:00
Zoe Slattery a54f690ae0 README for ext/imap tests 2008-12-17 15:36:44 +00:00
Zoe Slattery e780773ee6 Miscellaneous tests for ext/imap 2008-12-17 15:09:21 +00:00
Jani Taskinen 3c1bcc2c8c MFH:- Fixed bug #45161 (Reusing a curl handle leaks memory) 2008-12-17 14:20:30 +00:00
Jani Taskinen 1cd04d8739 MFH: bug tests 2008-12-17 14:05:52 +00:00
Zoe Slattery 3fff948321 New FTP test from Nathaniel McHugh 2008-12-17 12:35:53 +00:00
Ilia Alshanetsky 435cf74f45 MFH: removed unused var 2008-12-17 00:30:48 +00:00
Zoe Slattery 9919125435 bug #46837 fix 2008-12-16 21:35:42 +00:00
Zoe Slattery 2b5cd5b7fe bug #46884 fix 2008-12-16 21:11:49 +00:00
Steve Seear 071a3c3c7a call_user_func_array() tests 2008-12-15 14:12:16 +00:00
Zoe Slattery b0994638ee fixed test 2008-12-15 13:19:23 +00:00
Steve Seear 5591b9fabb Add find_tested script to 5_2 branch (for use by gcov.php.net) 2008-12-15 11:29:18 +00:00
Sanjay Mantoor d0eaa59d0f New testcases for gmdate function 2008-12-15 10:36:53 +00:00
Sanjay Mantoor 29c885c8bd New testcases for gettimeofday function 2008-12-15 08:23:58 +00:00
Scott MacVicar c9e793df5e Add CVE 2008-12-13 13:37:58 +00:00
Andrei Zmievski 844799cfd5 MFH 2008-12-13 00:38:29 +00:00
Rob Richards d6b537e8ca fix entry 2008-12-12 04:21:01 +00:00
Rob Richards dba2bf64dd BFN 2008-12-12 04:18:12 +00:00
Rob Richards f9020054d2 MFH: fix bug #46699: (xml_parse crash when parser is namespace aware)
fix a couple warnings
add test
2008-12-12 04:17:26 +00:00
Pierre Joye 22955ad4bf - fix build (all platforms) 2008-12-11 15:30:18 +00:00
Pierre Joye b2483079bb - MFH: fix build (was never used like that before recent commit to session) > local include use quotes not <> 2008-12-11 13:12:54 +00:00
Stefan Esser f2d5b34f26 Added test for magic_quotes_gpc 2008-12-11 13:06:29 +00:00
Ant Phillips 99e65a945e MCrypt tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows and Linux but not Linux 64 bit or 5.3). 2008-12-11 10:20:37 +00:00
Lars Strojny d5b6ae48f7 MFB: Fixing strict warning 2008-12-11 02:38:44 +00:00
Scott MacVicar b2863d6ecc BFN 2008-12-11 01:23:40 +00:00
Scott MacVicar 08e90b069f MFH Fix bug #35975 - Session cookie expires date format isn't the most compatible. Sync to that of setcookie(). 2008-12-11 01:21:42 +00:00
Pierre Joye 422eb1b8f6 - ws 2008-12-11 00:12:20 +00:00
Ilia Alshanetsky 8424c90476 MFB: Fixed bug #46798 (Crash in mssql extension when retrieving a NULL value
inside a binary or image column type)
2008-12-10 20:54:47 +00:00
Scott MacVicar c0defbdc81 BFN 2008-12-10 13:40:20 +00:00
Scott MacVicar ec469a9f6a MFH Fix segfault and potential security issue in imagerotate(). 2008-12-10 13:33:10 +00:00
Ant Phillips 0397dd836b Tests for bug #43841 and #45923 2008-12-10 10:35:40 +00:00
Arnaud Le Blanc 74a872c001 MFH: fixed test 2008-12-09 22:54:16 +00:00
Nuno Lopes 6499ce4847 update PCRE symbol list (sync with php 5.3). this should fix bug #46800 2008-12-09 22:00:19 +00:00
Jani Taskinen 0cc37e4a06 MFH 2008-12-09 16:05:57 +00:00
Jani Taskinen 84f868ded7 MFH: fix tests 2008-12-09 15:44:47 +00:00
Jani Taskinen 8808ffa0ff MFH 2008-12-09 15:21:33 +00:00
Zoe Slattery 7d2735fbef fix resource id 2008-12-09 13:40:25 +00:00
Jani Taskinen 6414245da6 MFH 2008-12-09 10:54:04 +00:00
Pierre Joye e3b599807c - not used anymore 2008-12-09 09:21:59 +00:00
Scott MacVicar 864632a1b1 MFB 5.3 Add test for the recent magic_quotes_gpc regression. 2008-12-09 01:48:32 +00:00
Pierre Joye 6bbb6b7df7 - MFH:
- buildconf accepts arguments (pecl dir for ex.)
 - copy configure.bat
2008-12-08 22:42:51 +00:00
Pierre Joye 743e7d8cb7 - MFH: add configure script 2008-12-08 22:40:30 +00:00
Nuno Lopes 3f3da95a4c remove unused file to avoid confusion 2008-12-08 20:18:14 +00:00
Zoe Slattery bb46ef5a6e tests for imap_fetch_overview 2008-12-08 19:14:03 +00:00
Jani Taskinen bb46aa5f97 - Sync with HEAD 2008-12-08 12:35:54 +00:00
Scott MacVicar b364219ade Fix bug #46748, segfault when SSL has more than one error message. 2008-12-08 02:33:46 +00:00
Antony Dovgal de78386d8f fix .cvsignore 2008-12-07 19:33:15 +00:00
Ilia Alshanetsky 1fa754ffd3 Back to dev 2008-12-07 19:28:01 +00:00
Ilia Alshanetsky 3cb41ad94d 5.2.8 2008-12-07 19:23:26 +00:00
Ilia Alshanetsky 34455b8ab8 5.2.8 2008-12-07 19:18:20 +00:00
Ilia Alshanetsky ff209bb97c Move active branch to 5.2.9 2008-12-07 19:08:35 +00:00
Matt Wilmas af5cb849ee MFH: Fixed bug #46782 (fastcgi.c parse error) 2008-12-07 10:55:47 +00:00
Scott MacVicar ab165076a9 Back out bugfix for #42718 as this broke magic_quotes_gpc 2008-12-06 17:16:36 +00:00
Zoe Slattery 488d12c2e5 More changes to allow the same tests to be used with PHP5 and PHP6 2008-12-06 12:02:24 +00:00
Robin Fernandes 27c06db0bd Add some class related tests, fix hard-coded object ID in serialize_001.phpt. 2008-12-05 22:12:06 +00:00
Rob Richards 3bfe758475 MFH: fix arginfo - these also accept SimpleXMLElement 2008-12-05 18:36:16 +00:00
Zoe Slattery dee98d2d9e FTP test from Nathaniel McHugh 2008-12-05 16:27:01 +00:00
Ant Phillips 19c4363c8a Remove duff comment produced by the test generator tool 2008-12-05 14:17:58 +00:00
Zoe Slattery 7c375c4879 bug #46731 fix 2008-12-05 11:59:01 +00:00
Zoe Slattery 51e0152170 Update to use norsh flag 2008-12-05 11:02:55 +00:00
Sanjay Mantoor 59338d84b7 New testcases for date_sunset function 2008-12-05 06:12:11 +00:00
Sanjay Mantoor 8f00f19419 New testcases for date_sunrise function 2008-12-05 05:35:39 +00:00
Mikko Koppanen df7ba6eb86 Fixed #46739 2008-12-04 13:17:28 +00:00
Mikko Koppanen d6593aa472 Fixes bug #46739 2008-12-04 13:13:41 +00:00
Antony Dovgal 3fbb9f50c5 fix test 2008-12-03 21:29:19 +00:00
Felipe Pena 5be5df48c9 - Fixed strange typos 2008-12-03 20:45:25 +00:00
Ant Phillips b337c7ad95 XML tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit). 2008-12-03 19:09:22 +00:00
Felipe Pena 1000e22750 - Coverage++ 2008-12-03 16:27:50 +00:00
Ilia Alshanetsky 4efe92fa7c Back to dev 2008-12-03 15:57:52 +00:00
Ilia Alshanetsky b822f24748 PHP 5.2.7 2008-12-03 15:54:03 +00:00
Robin Fernandes 1ff15e8260 Add support for %u|b% and %unicode_string_optional% to facilitate writing tests compatible with both 5_2 and HEAD. 2008-12-03 14:27:43 +00:00
Ant Phillips 0ff050f076 MBString tests: checked on PHP 5.2.6 (Windows, Linux and Linux 64 bit). 2008-12-03 13:04:38 +00:00
Felipe Pena 2689a74cee - BFN 2008-12-03 10:15:13 +00:00
Ant Phillips b11ad90dfc Delete duff commit files 2008-12-03 09:25:42 +00:00
Felipe Pena bc7d3a9484 - Fixed tests 2008-12-02 23:06:52 +00:00
Felipe Pena 03eb1fd623 MFH:
- Fixed memory leaks
- Added new tests (Coverage++)
2008-12-02 21:02:44 +00:00
Derick Rethans 24a764e086 - MFH: Fixed bug #46732 (mktime.year description is wrong). 2008-12-02 18:01:58 +00:00
Matt Wilmas 7c53e81273 MFH: Changed logic for LONG_MIN 2008-12-02 14:50:37 +00:00
Ant Phillips 173069cead Array tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit). 2008-12-02 13:37:21 +00:00
Ilia Alshanetsky 0902cc8651 Fixed typo 2008-12-01 20:57:11 +00:00
Iain Lewis 1b3ea47dbc Adding tests for array_multisort 2008-12-01 14:25:24 +00:00
Felipe Pena fb11097b06 - MFH: Fixed memory leak 2008-12-01 12:28:27 +00:00
Ant Phillips 0722818374 Exif tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit). 2008-12-01 12:23:33 +00:00
Ant Phillips 72e8a2ec60 DOM tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit). 2008-12-01 11:29:35 +00:00
Uwe Schindler e073d72618 remove unneeded includes (not needed since NSAPI 3.0, wich is very old). This is needed for cleanup of the windows build. 2008-12-01 10:11:57 +00:00
Pierre Joye 21f74ba99e - c/p fix, correct description 2008-12-01 00:03:03 +00:00
Pierre Joye 279c926f8b - Enable fix fo #42862 (IMAP toolkit crash: rfc822.c legacy routine buffer overflow) on windows (we use the latest imap) 2008-11-30 23:58:17 +00:00
Pierre Joye 26eeef7599 - fix line ending 2008-11-30 23:56:36 +00:00
Pierre Joye 07fde460a3 - fix line ending 2008-11-30 22:35:39 +00:00
Pierre Joye d70eefbaa0 - #44900 2008-11-30 21:41:57 +00:00
Pierre Joye 3d1a87fb88 - #44900, OpenSSL extension fails to link with OpenSSL 0.9.6 (5.2 only, 5.3+ requires a decent version) 2008-11-30 21:39:57 +00:00
Hannes Magnusson df9603aae0 MFH: Fix proto 2008-11-30 00:12:45 +00:00
Uwe Schindler 4560601437 MFH: support stat cache of webserver (like apache does) 2008-11-29 23:44:44 +00:00
Uwe Schindler 77972bc68a MFH: Some nsapi.h specific ifdefs unified & corrected (same like last commit, only cleanup) 2008-11-29 19:59:27 +00:00
Uwe Schindler 877cdf6862 MFH: remove one stat call and replace by cached one
(release-manager: the same like with last commit)
2008-11-29 19:38:04 +00:00
Uwe Schindler 75b081d0d1 Hallo release manager: This patch is not release critical (affects only NSAPI, but I want it to be fixed in the last version of PHP 5.2). If you do not want to have it in, revert it, a new RC is definitely not needed because of this (and I am sure nobody who tests RCs is using NSAPI :)!
MFH: Implement flushing in NSAPI, fix some problems with output buffering if the response was not started (no headers sent) before doing something in ub_write() or flush() - Writing or flushing output will fail in NSAPI, if headers were not sent before.
2008-11-29 14:51:45 +00:00
Stanislav Malyshev f9a2648d61 report fix 2008-11-29 00:49:58 +00:00
Stanislav Malyshev 8a0fc77582 properly initialize BG(page_uid) and BG(page_gid) 2008-11-28 23:27:46 +00:00
Stanislav Malyshev 7a67e94f17 init SG(server_context) before processing configs 2008-11-28 23:22:39 +00:00
Matt Wilmas 2826401afe MFH: Updated description to match docs 2008-11-28 19:07:09 +00:00
Zoe Slattery b51bb4132f Committing include files required for tests. Tests and bug reports to follow. 2008-11-28 17:41:03 +00:00
Dmitry Stogov 281fb1f2ed Fixed bug #46366 (bad cwd with / as pathinfo) 2008-11-28 11:56:50 +00:00
Ant Phillips fbdf0ba4e5 Language tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit). 2008-11-28 10:40:37 +00:00
Stanislav Malyshev 311e37c4b1 report fix 2008-11-27 23:51:45 +00:00
Ilia Alshanetsky e0beb2850f Back to dev 2008-11-27 21:28:37 +00:00
Ilia Alshanetsky c66894df94 5.2.7RC5 2008-11-27 21:21:42 +00:00
Ilia Alshanetsky 460b6552cd Updated NEWS file with CVE #s 2008-11-27 17:29:20 +00:00
Ilia Alshanetsky e12dba474e MFB: Fixed bug #46696 (cURL fails in upload files with specified
content-type)
2008-11-27 17:01:29 +00:00
Ant Phillips 39de96fa50 Directory tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit). 2008-11-27 14:51:16 +00:00
Dmitry Stogov ac0fc54ec4 Fixed bug #44882 (SOAP extension object decoding bug) 2008-11-27 14:49:46 +00:00
Ant Phillips 7446484181 Latest and greatest versions of these session tests - checked on 5.2.X snap on Windows, Linux and Linux 64 bit. 2008-11-27 14:30:58 +00:00
Ant Phillips bc80465549 Latest and greatest versions of these session tests - checked on 5.2.X snap on Windows, Linux and Linux 64 bit. 2008-11-27 13:51:07 +00:00
Dmitry Stogov 84ce97f43d Fixed bug #46427 (SoapClient() stumbles over its "stream_context" parameter) 2008-11-27 11:25:22 +00:00
Arnaud Le Blanc 9ed3965300 MFH: Fixed bug #46673 (stream_lock call with wrong paramater) 2008-11-26 04:20:41 +00:00
Arnaud Le Blanc fbde968865 MFH: Missed file from commit for #44181 & #44182 2008-11-26 04:08:30 +00:00
Arnaud Le Blanc 5673f9f2c1 MFH: Fixed bug #42473 (ob_start php://output and headers) 2008-11-26 01:21:10 +00:00
Arnaud Le Blanc 22f994ad4e MFH: Fixed bugs #44181 & #44182 (extract() and references)
(robin_fernandes at uk dot ibm dot com)
2008-11-26 01:00:36 +00:00
Ant Phillips 701c5a64a4 File system tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit). There seems to be an issue with trailing slashes on 5.2.7 RC1 which may cause some tests to fail... 2008-11-25 11:33:41 +00:00
Arnaud Le Blanc 3e82b3d3ae MFH: Fixed endless loop in cli when ignore_user_abort is on 2008-11-25 03:53:00 +00:00
Stanislav Malyshev 40607b254a fix php_value application order for Apache 2008-11-24 22:18:25 +00:00
Ilia Alshanetsky 0d56cd2dfc MFB: Fixed bug #46626 (mb_convert_case does not handle apostrophe correctly) 2008-11-24 21:23:45 +00:00
Arnaud Le Blanc 90f9f11fbe MFH 2008-11-24 19:17:56 +00:00
David Soria Parra 6686c41e3d MFH: Revert fix for 43782, as it caused problems. 2008-11-24 15:37:33 +00:00
Jani Taskinen d9204dbce2 - Keep the style ;) 2008-11-24 12:49:00 +00:00
Arnaud Le Blanc d6b86e9d4d MFH: Fixed bug #46649 (Setting array element with that same array produces
inconsistent results)
2008-11-23 20:36:32 +00:00
Ilia Alshanetsky d2bb47958f BFN: Fixed bug #46643 (Upgraded PCRElib to 7.8) 2008-11-23 18:31:05 +00:00
Ilia Alshanetsky d8b835620c MFB: Fixed bug #46643 (Upgraded PCRElib to 7.8) 2008-11-23 18:30:38 +00:00
Felipe Pena 3d8b5526af - BFN 2008-11-22 11:24:15 +00:00
Felipe Pena c22036851a - Missing SKIPIF :( 2008-11-21 22:56:20 +00:00
Felipe Pena 958fcd4c65 - Fixed tests 2008-11-21 22:50:22 +00:00
Felipe Pena 572b3f83a3 - MFH: Fixed memory leak in readline_callback_handler_remove() 2008-11-21 22:48:27 +00:00
Felipe Pena f358f96deb - New tests 2008-11-21 21:44:32 +00:00
Felipe Pena d5e2d221cd - Fix test 2008-11-21 21:03:47 +00:00
Felipe Pena bec4b5a45e - New tests 2008-11-21 21:01:23 +00:00
Ilia Alshanetsky 42066c72d1 Back to dev 2008-11-21 00:12:18 +00:00
Ilia Alshanetsky 574d2c8987 5.2.7RC4 2008-11-21 00:08:49 +00:00
Felipe Pena c9f76fb96f - BFN 2008-11-20 22:29:49 +00:00
Felipe Pena 22851007ca - MFH: Fixed memory leaks in readline_completion_function() 2008-11-20 22:26:32 +00:00
Iain Lewis 2b251dc603 Adding some tests for array_product 2008-11-20 15:49:09 +00:00
Mark Karpeles dddacf337a - ext/wddx: fixed test 003 which depended on arch (32bits vs 64bits) 2008-11-20 15:12:28 +00:00
Felipe Pena f4cc20d972 - MFH: Added ZEND_FETCH_RESOURCE_NO_RETURN 2008-11-20 14:51:30 +00:00
Mark Karpeles c139ff0ae1 - MFH: ext/wddx: classes providing __sleep() are stored without properties (fixed) 2008-11-20 14:35:22 +00:00
Ilia Alshanetsky d65d363741 Proper bug id 2008-11-19 23:53:18 +00:00
Pierre Joye 6f24d39212 - #46497 2008-11-19 17:02:33 +00:00
Pierre Joye fa0e88725c - #46497, wddx_serialize treats input as ISO-8859-1 (Mark Karpeles) 2008-11-19 17:01:17 +00:00
Felipe Pena 50e05895c0 - Fixed test 2008-11-19 17:00:13 +00:00
Ant Phillips dfd31ff703 Reflection tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit). 2008-11-18 15:36:32 +00:00
Pierre Joye 0d3534ac1d - #41033 2008-11-18 02:15:54 +00:00
Pierre Joye 0f50210635 - fix title 2008-11-18 02:03:19 +00:00
Pierre Joye a46b6655a4 - MFH: #41033, enable signing with DSA keys 2008-11-18 02:02:19 +00:00
Ilia Alshanetsky bb592b40ab More detailed bug fix description 2008-11-17 23:40:54 +00:00
Ant Phillips 29023692ce Commit tests for ext/reflection 2008-11-17 11:20:19 +00:00
Pierre Joye bb80704332 - skip if pcntl is missing 2008-11-16 23:19:33 +00:00
Pierre Joye f38c96e85f - MFH: manage references of stream context properly (Tony)
- add tests for bug #46127
2008-11-16 23:12:38 +00:00
Ilia Alshanetsky aea970fbc2 MFB: Fixed memory leak inside readline_callback_handler_install() function 2008-11-16 18:01:25 +00:00
Felipe Pena 8c6eedb868 - MFH: Better fix 2008-11-13 23:23:11 +00:00
Stanislav Malyshev 682f0c5343 add error_log change 2008-11-13 19:23:51 +00:00
Stanislav Malyshev d3376cb591 Add option to send error_log directly to SAPI 2008-11-13 19:22:01 +00:00
Hannes Magnusson 8c5fafcdb9 MFH: Document the xmlrpc_errors option 2008-11-13 19:06:59 +00:00
Ilia Alshanetsky 88dbe358e0 MFB: Fixed a bug inside dba_replace() that could cause file truncation with
invalid keys
2008-11-13 18:22:23 +00:00
Felipe Pena 83308cedf9 - Reverted last change, only in this branch 2008-11-13 14:53:55 +00:00
Felipe Pena 614d00ca89 - MFH: Fixed invalid reads 2008-11-13 13:09:47 +00:00
Felipe Pena 9bb9f270fa - MFH: Fixed a macro redefinition on BSD for different purpose 2008-11-12 23:38:15 +00:00
Felipe Pena 1bedb57dd4 - MFH: Removed unused variables 2008-11-12 17:50:37 +00:00
Felipe Pena c18fd01775 - Fix test 2008-11-12 17:29:50 +00:00
Pierre Joye 7e2f15eb3a - update NEWS for #14962 2008-11-12 12:01:29 +00:00
Pierre Joye 36b9272e3c - MFH:
- #14962, makes extractTo 2nd argument really optional
 - replace ZEND_ENGINE_2_1 by PHP_ZIP_USE_OO
 - sync tests
2008-11-12 11:59:26 +00:00
Felipe Pena cac8a72989 - Fixes and new tests 2008-11-11 18:42:00 +00:00
Felipe Pena d7a80059bb - New test 2008-11-11 16:16:20 +00:00
Felipe Pena a3de4d224a - BFN #46543 2008-11-11 13:32:55 +00:00
Felipe Pena ea70058067 MFH:
- Added ZEND_FETCH_RESOURCE2_NO_RETURN() (a version of ZEND_FETCH_RESOURCE2 but without the ZEND_VERIFY_RESOURCE() which contains RETURN_FALSE)
- Fixed bug #46543 (ibase_trans() memory leaks when using wrong parameters)
2008-11-11 13:29:50 +00:00
Arnaud Le Blanc c7411c2c96 MFH: Fixed stream_get_contents() when using $maxlength and socket is not
closed. indeyets@php.net on #46049.
2008-11-11 01:56:33 +00:00
Arnaud Le Blanc 3c01491e89 MFH: Fixed bug #44818 (php://memory writeable when opened read only) 2008-11-11 00:45:36 +00:00
Felipe Pena edd46ec6f7 - Make expected result compatible with recent Firebird version 2008-11-10 22:35:02 +00:00
Felipe Pena 13c8beed63 - New tests 2008-11-10 18:04:41 +00:00
Derick Rethans ffef452b62 - MFH: Make it work with bison 2.4. 2008-11-10 12:06:10 +00:00
Kalle Sommer Nielsen 63130eadc0 Fix NEWS 2008-11-09 11:39:27 +00:00
Timm Friebe b0419a1ef1 - Added note on bugfix for #30312
- Added entry on CS_ROW_FAIL patch fix
2008-11-09 10:33:53 +00:00
Rasmus Lerdorf 058a282133 Potential fix for bug #46525 2008-11-08 22:45:29 +00:00
Felipe Pena ab5e85b27d - MFH: Added connection checking on SKIPIF 2008-11-08 15:39:32 +00:00
Timm Friebe 6d6138d9d9 - MFB: Initial release 2008-11-08 14:28:26 +00:00
Timm Friebe 839b81668c - Adjusted tests to reality
# We select 123456789.12345679, we should have this returned and not
# something 123456789.123457 (rounded)
2008-11-08 14:24:55 +00:00
Timm Friebe ea1453a741 - MFB: Made this test independent of date format 2008-11-08 14:24:38 +00:00
Timm Friebe 00772abea5 - MFB: Fixed problems with segmentation faults when using unbuffered queries
# Double-freeing results caused these
2008-11-08 14:15:08 +00:00
Timm Friebe b42da54e51 - MFB: Changed while loop in php_sybase_fetch_result_row() to also read rows with
retcode == CS_ROW_FAIL.
# Reported by Detlef Neumerkel and Frank Irnich of Sybase
2008-11-08 12:06:08 +00:00
Timm Friebe ef15af78dd - MFB: Made this test independent of field types in master..sysprocesses
# char on ASE 11, varchar on ASE 15
2008-11-08 12:01:10 +00:00
Timm Friebe c5b45f2281 - Changed source to read host, user and password from environment
# E.g. nmake test TESTS=ext/sybase_ct PHP_SYBASE_HOST=db PHP_SYBASE_USER=sa PHP_SYBASE_PASS=***
2008-11-08 11:59:57 +00:00
Scott MacVicar df7f836d31 MFH: Support versions of valgrind from SVN. The version is shown as 3.4.0.SVN
Save the bunnies
2008-11-08 02:05:03 +00:00
Felipe Pena 9d052f239f MFH:
- Fixed bug #46521 (Curl ZTS OpenSSL, error in config.m4 fragment)
  Noticed by: jd at cpanel dot net
2008-11-07 21:18:45 +00:00
Ilia Alshanetsky 482d6ad927 Back to dev 2008-11-06 21:53:48 +00:00
Ilia Alshanetsky f2445bd57a 5.2.7RC3 2008-11-06 21:50:36 +00:00
Felipe Pena a054d74c4a BFN #45166 2008-11-06 01:36:40 +00:00
Felipe Pena 779adcc113 MFH:
- Fixed wrong check
- Improved test
2008-11-05 23:42:05 +00:00
Felipe Pena 347fa0eb1b - Fixed bug #45166 (substr() overflow changes) (now synced with other branches) 2008-11-05 18:55:02 +00:00
Hannes Magnusson ac10dfa0ce Fixed bug#46445 (run-tests2.php is missing or README.TESTING2 is unneeded) 2008-11-05 17:16:07 +00:00
Kalle Sommer Nielsen def82c26f2 MFH: New tests for syslog 2008-11-05 09:59:46 +00:00
Arnaud Le Blanc 9ecba09de6 BFN 2008-11-04 21:07:44 +00:00
Arnaud Le Blanc be8c7c0988 MFH: Open STDIN and php://stdin streams with the relevant
wrapper when the file descriptor is a socket (inetd, etc)
Fixes bug #43731
2008-11-04 21:05:55 +00:00
Arnaud Le Blanc 695b43a535 MFH: initialize memory 2008-11-04 20:41:37 +00:00
Arnaud Le Blanc 1ba7b093a6 MFH: Fixed stream_get_line() to behave as documented on non-blocking
streams
2008-11-04 17:07:20 +00:00
Arnaud Le Blanc 930a8feb66 MFH: Avoids fclose() from complaining that stream_socket_pair() streams
have not been closed
2008-11-04 16:48:07 +00:00
Arnaud Le Blanc c6aca784f9 MFH: Fixed bug #46024 (stream_select() doesn't return the correct number) 2008-11-04 00:43:06 +00:00
Felipe Pena 7c76add7fe - MFH: Improved fix 2008-11-03 23:45:17 +00:00
Arnaud Le Blanc 736f29a9a9 cleanup 2008-11-03 23:34:36 +00:00
Arnaud Le Blanc c644ba688b MFH: Fixed bug #44607 (stream_get_line unable to correctly identify the
"ending" in the stream content)
2008-11-03 23:29:50 +00:00
Arnaud Le Blanc 07fe6986cc Fixed bug #46379 (Infinite loop when parsing '#' in one line file)
# PHP_5_2 only
2008-11-03 23:26:24 +00:00
Felipe Pena 8290469bd6 - New test 2008-11-03 21:49:49 +00:00
Felipe Pena fc53f0b6ea MFH:
- Fixed endless loop in PDOStatement::debugDumpParams()
  patch by: Jonah H. Harris <jonah.harris at gmail dot com>
2008-11-03 20:55:01 +00:00
Elizabeth Marie Smith 3591f8b356 MFH 2008-11-03 19:28:23 +00:00
Arnaud Le Blanc 5e5e4293c3 MFH: Fixed bug #45303 (Opening php:// wrapper in append mode results
in a warning)
2008-11-03 16:59:18 +00:00
Arnaud Le Blanc 2d36d06f35 credit 2008-11-03 16:08:07 +00:00
Arnaud Le Blanc 77f82b1401 MFH: Fixed bug #43353 (wrong detection of 'data' wrapper causes notice) 2008-11-03 15:48:05 +00:00
Felipe Pena 378bd3060e - MFH: Fixed bug #44327 (PDORow::queryString property & numeric offsets / Crash) 2008-11-03 15:41:35 +00:00
Felipe Pena f4d34bb28e - MFH: Fixed bug #42855 (dns_get_record() doesn't return all text from TXT record)
patch by: a dot u dot savchuk at gmail dot com
2008-11-03 11:39:34 +00:00
Arnaud Le Blanc 2f29a1240e MFH: Fixed bug #42718 (FILTER_UNSAFE_RAW not applied when configured as
default filter)
2008-11-02 22:04:40 +00:00
Jani Taskinen ea8aea176a - Ignore crap 2008-11-02 14:48:52 +00:00
Jani Taskinen 29b9bddb0c MF53: added missing constants 2008-11-02 14:12:15 +00:00
Jani Taskinen f848fb0fa1 MFH: fixed the macros 2008-11-01 23:09:51 +00:00
Jani Taskinen 1d608d09f2 - Fix skip conditions 2008-11-01 22:48:52 +00:00
Jani Taskinen 07c3dbdc8c MF53: Sync with HEAD and PHP_5_3 2008-11-01 22:42:38 +00:00
Jani Taskinen 7fc67ed4a9 [DOC] MF53: Forward compatibility 2008-11-01 22:39:14 +00:00
Jani Taskinen 98e3ad366a - Fix for real: Actually one of these "let's not commit to other branches"
fixes some people like to do..
2008-11-01 22:12:11 +00:00
Jani Taskinen f7ced2b8af - Fix tests 2008-11-01 22:06:23 +00:00
Felipe Pena 416679fae5 - Fixed test (#46438) 2008-10-31 22:43:32 +00:00
Felipe Pena 192e130e52 - Fixed test 2008-10-31 12:55:10 +00:00
Felipe Pena cc6e678224 - MFB: Fixed memory leak when using offset out of range. (php_stream_copy_to_mem returns 0, but the empty string is alloced) 2008-10-30 15:56:23 +00:00
Felipe Pena 94e5be1bdc MFH:
- Fix the fix
- Improved test
2008-10-30 14:36:34 +00:00
Lars Strojny 930fad7381 MFH: #44938 2008-10-30 14:23:03 +00:00
Jani Taskinen 3e32e77243 - had nothing else to do :) 2008-10-30 11:04:10 +00:00
Felipe Pena 756ab17389 - MFH: Fixed bug #46426 (3rd parameter offset of stream_get_contents not works for "0") 2008-10-30 10:11:52 +00:00
Dmitry Stogov 4c3bc2ab43 Fixed contributors 2008-10-30 08:56:38 +00:00
Dmitry Stogov e173d61581 Fixed ability to use "internal" heaps in extensions. 2008-10-30 08:55:09 +00:00
Antony Dovgal 250fec018a fix test 2008-10-30 08:45:21 +00:00
Rob Richards dcba47f8dc BFN 2008-10-29 21:23:45 +00:00
Rob Richards a27ca9810a MFH: fix bug #46406 (Unregistering nodeclass throws E_FATAL) 2008-10-29 21:22:34 +00:00
Ilia Alshanetsky b0ab190e62 MFB: Fixed bug #44938 (gettext functions crash with overly long domain). 2008-10-29 20:41:43 +00:00
Ilia Alshanetsky 3f9d6e9d7c MFB: Fixed bug #42294 (Unified solution for round() based on C99 round). 2008-10-29 20:17:33 +00:00
Felipe Pena acecc06940 - BFN #46064 2008-10-29 13:36:47 +00:00
Felipe Pena a04ec69406 - MFH: Fixed bug #46064 (Exception when creating ReflectionProperty object on dynamicly created property) 2008-10-29 13:34:08 +00:00
Ilia Alshanetsky 3b7b54ac68 NEWS 2008-10-28 21:23:12 +00:00
Derick Rethans 7922a83ac0 - Updated to version 2008.9 (2008i) 2008-10-28 08:17:47 +00:00
Arnaud Le Blanc 617a8855b8 MFH: Fix compile error 2008-10-27 14:59:14 +00:00
Andrey Hristov dc710ce12f MFH: Fix an issue with mysql.default_port not being used 2008-10-27 14:36:02 +00:00
Felipe Pena 77bce434a0 - Fixed test 2008-10-26 23:00:53 +00:00
Kalle Sommer Nielsen e486197f1e MFB: Fixed #44748 (php.ini comments on magic_quotes_gpc promote bad practices) 2008-10-26 15:39:44 +00:00
Ilia Alshanetsky a5e30d595f MFB: Fixed compiler warning 2008-10-26 14:35:59 +00:00
Felipe Pena d1eb03eec7 - MFH: Fixed bug #46388 (stream_notification_callback inside of object destroys object variables) 2008-10-26 13:48:16 +00:00
Derick Rethans 21490362dd - MFH: Fixed weekdays adding/subtracting algorithm.
- MFH: Fixed some ambiguities in the date parser.
- MFH: Fixed bug #45529 (new DateTimeZone() and date_create()->getTimezone()
  behave different).
- MFH: Fixed bug #43452 (strings containing a weekday, or a number plus weekday
  behaved incorrect of the current day-of-week was the same as the one in the
  phrase).
- MFH: Fixed a bug with the YYYY-MM format not resetting the day correctly.
- MFH: Fixed a bug in the DateTime->modify() methods, it would not use the
  advanced relative time strings.
- MFH: Fixed a segfault - simply a forgotten return;
2008-10-26 11:27:32 +00:00
Felipe Pena 93d952884d - BFN #46389 2008-10-26 02:24:23 +00:00
Felipe Pena e18c762764 - MFH: Fixed bug #46389 (NetWare needs small patch for _timezone) (patch by guenter at php.net) 2008-10-26 02:02:05 +00:00
Felipe Pena 48d1b3a51a - MFH: Fixed bug #46382 (Mismatching allocation and deallocation in stresstest.cpp) (dvice_null at yahoo dot com) 2008-10-24 23:17:04 +00:00
Antony Dovgal 334e8973db fix test 2008-10-24 20:15:34 +00:00
Antony Dovgal d3bf8e3016 BFN 2008-10-24 13:56:27 +00:00
Antony Dovgal 340bd30aa6 fix bug #46381 (wrong $this passed to internal methods causes segfault) 2008-10-24 13:55:37 +00:00
Felipe Pena 9fca0051a6 - MFH: Fixed bug #46082 (stream_set_blocking() can cause a crash in some circumstances) 2008-10-24 10:46:05 +00:00
Felipe Pena 44c184862b - MFH: Removed unnecessary check for array (#46273, noticed by serovov at gmail dot com) 2008-10-24 10:28:56 +00:00
Ilia Alshanetsky 51466116c0 Back to dev 2008-10-23 22:38:19 +00:00
Ilia Alshanetsky 705f67c884 5.2.7RC2 2008-10-23 22:36:05 +00:00
Arnaud Le Blanc 6928982fb3 BFN 2008-10-23 20:23:38 +00:00
Arnaud Le Blanc 8b969f44d7 MFH: Fixed bug #46360 (TCP_NODELAY constant for socket_{get,set}_option)
[DOC] Added TCP_NODELAY constant to sockets extension, to be used with
socket_set_option() to disable TCP's Nagle algorithm. Avail in PHP>=5.2.7.
2008-10-23 20:21:30 +00:00
Felipe Pena a29aef485a - BFN #43925 2008-10-23 18:57:07 +00:00
Felipe Pena 8d88e230fc - MFH: Fixed bug #43925 (Incorrect argument counter in prepared statements with pgsql) 2008-10-23 18:56:05 +00:00
Jani Taskinen baccc9b2e9 - It is past, not command. Reorder. 2008-10-23 17:55:57 +00:00
Pierre Joye c49953a8f6 - entries for zip changes 2008-10-23 16:22:01 +00:00
Pierre Joye 08a1795767 - remove unused files 2008-10-23 16:16:56 +00:00
Pierre Joye 4fc1246d11 - add missing files 2008-10-23 16:15:54 +00:00
Pierre Joye 047bda3cb8 - MFH
- Update ziplib
 - flatten path and make them relative before extraction
 - remove unnecessary export
2008-10-23 16:13:51 +00:00
Ilia Alshanetsky 8d916b2ec6 MFB: revert define() fix for now 2008-10-22 23:29:28 +00:00
Arnaud Le Blanc bb9e8e6924 MFH: Fixed FCGI_GET_VALUES requests (fixes #45522) 2008-10-21 16:43:59 +00:00
Zoe Slattery f432258b02 Committing test for till 2008-10-21 09:37:41 +00:00
Ilia Alshanetsky 1b0d1d6bcb MFB:Fixed bug #46343 (IPv6 address filter accepts invalid address) 2008-10-20 23:23:45 +00:00
Rob Richards c9e4d5b668 BFN 2008-10-20 19:30:56 +00:00
Rob Richards 8767f16ff3 MFH: fix bug #46323 (compilation of simplexml for NetWare breaks) 2008-10-20 19:29:40 +00:00
Arnaud Le Blanc f31c8fb4aa MFB PHP_5_3: Fixed #46313 (Magic quotes broke $_FILES) 2008-10-20 18:45:24 +00:00
Rob Richards 68a04f616b BFN 2008-10-20 12:46:57 +00:00
Rob Richards 6a2fe2ad1a MFH: fix bug #46335 (DOMText::splitText doesn't handle multibyte characters)
add test
2008-10-20 12:46:23 +00:00
Ilia Alshanetsky 0e91f80a4d MFB: Fixed bug #46341 (Added missing validation checks into define() for
class constants)
2008-10-19 18:16:43 +00:00
Johannes Schlüter 0e306ec3bc Add %S and %A to EXPECTF, they work like %s and %a but match empty strings, too 2008-10-19 18:07:04 +00:00
Etienne Kneuss c31e0c803e MFB: Fix #46317 (Iterator class not properly checked) 2008-10-19 18:00:42 +00:00
Antony Dovgal 8d7590996d revert the patch, it's not needed in this branch 2008-10-18 09:33:21 +00:00
Antony Dovgal 4768b28fb1 MFH: fix memleak 2008-10-17 22:10:27 +00:00
Zoe Slattery a82df14bef missed one! 2008-10-17 15:00:54 +00:00
Zoe Slattery 7d46d0480e Replacing explicit object ID with %d 2008-10-17 14:57:03 +00:00
Zoe Slattery 867546efca Committing for Robin Fernandes 2008-10-17 14:26:46 +00:00
Dmitry Stogov 739c75b050 Fixed bug #46308 (Invalid write when changing property from inside getter) 2008-10-17 10:25:56 +00:00
Ilia Alshanetsky 0621602408 MFB: Fixed bug #46319 (PHP sets default Content-Type header for HTTP 304
response code, in cgi sapi)
2008-10-17 01:32:59 +00:00
Moriyoshi Koizumi f87643038f * MFH remainder 2008-10-16 17:38:42 +00:00
Dmitry Stogov e0f657a729 Fixed bug #42862 (IMAP toolkit crash: rfc822.c legacy routine buffer overflow) 2008-10-16 16:20:53 +00:00
Dmitry Stogov 9973dfd839 ws 2008-10-16 15:49:18 +00:00
Dmitry Stogov 35f7c44a7d Fixed bug #43723 (SOAP not sent properly from client for <choice>) 2008-10-16 15:36:46 +00:00
Moriyoshi Koizumi d896ea0b9a - MFH & BFN 2008-10-16 01:02:39 +00:00
Felipe Pena 0f6f3c4771 MFH:
- Fixed:
  . Memory leak in pg_delete() when using PGSQL_DML_STRING.
  . Bug #24679 (pg_insert problem!)
  . Bug #35996 (pg_meta_data should take the schema into account)
  . Bug #40808 (pg_insert problem)
  . Bug #42078 (pg_meta_data mix tables metadata from different schemas)
- Improved:
  . Error messages
- Added:
  . Tests
2008-10-16 00:45:21 +00:00
Felipe Pena 2976c867a1 - Fixed possible efree(NULL) 2008-10-15 13:34:45 +00:00
Ilia Alshanetsky 208d8e75f1 MFB: Fixed bug #46271 (local_cert option is not resolved to full path) 2008-10-14 23:40:25 +00:00
Felipe Pena eff30bdfcb - MFH: Fixed bug #46292 (PDO::setFetchMode() shouldn't requires the 2nd arg when using FETCH_CLASSTYPE) 2008-10-14 17:43:20 +00:00
Felipe Pena 4045a51376 - BFN #37100 2008-10-13 13:47:24 +00:00
Felipe Pena 043c66806a MFH:
- Fixed bug #37100 (data is returned truncated with BINARY CURSOR)
  Patch by Tony
2008-10-13 13:46:25 +00:00
Derick Rethans 78253b53e3 - Updated to version 2008.8 (2008h) 2008-10-13 11:45:48 +00:00
Ilia Alshanetsky 09b63f25d8 WS 2008-10-12 19:00:58 +00:00
Felipe Pena 338d7dbca0 - MFB: Fixed compiler warnings 2008-10-12 15:01:40 +00:00
Felipe Pena 736efdcfc1 - MFB: Removed unnecessary strcmp call (thanks Tony) 2008-10-12 13:46:51 +00:00
Felipe Pena 7429cd2181 - New tests 2008-10-12 13:25:35 +00:00
Felipe Pena 5adf804213 - MFB: Complete the fix for #46274, and tests 2008-10-12 13:03:31 +00:00
Felipe Pena 9c16e1d9d2 - BFN: #46274, #46249 2008-10-11 19:20:41 +00:00
Greg Beaver fcec48fcc2 fix Bug #46026: bz2.decompress/zlib.inflate filter tries to decompress after end of stream 2008-10-11 19:12:11 +00:00
Felipe Pena 5feb5e5a89 MFH:
- Fixed bug #46249 (pdo_pgsql always fill in NULL for empty BLOB)
- Fixed bug #46274 (pdo_pgsql - Segfault when using PDO::ATTR_STRINGIFY_FETCHES and blob)
2008-10-11 19:05:30 +00:00
Pierre Joye 8e87cdf7ac - MFH: add nts postfix to the dist filenames 2008-10-10 23:38:15 +00:00
Felipe Pena 661569eba6 - Fixed test 2008-10-10 22:10:11 +00:00
Felipe Pena c073b42ba2 - Added skipif 2008-10-10 19:53:38 +00:00
Felipe Pena 64fcd3b4e1 - New test 2008-10-10 19:50:04 +00:00
Felipe Pena 6843a38b2c - MFH: Static'fication 2008-10-10 19:35:49 +00:00
Felipe Pena 7b952b33c6 - BFN #46139 2008-10-10 16:49:26 +00:00
Felipe Pena 177c1f128b MFH:
- Fixed bug #46139 (PDOStatement->setFetchMode() forgets FETCH_PROPS_LATE)
  Initial patch by: chsc at peytz dot dk
2008-10-10 16:48:13 +00:00
Dmitry Stogov a1a1249753 Fixed bug #46246 (difference between call_user_func(array($this, $method)) and $this->$method()) 2008-10-10 15:53:31 +00:00
Antony Dovgal 27fbfa3d08 backport convenience macro 2008-10-10 14:47:17 +00:00
Felipe Pena 16021cb6e3 - BFN: #44251, #41125 2008-10-10 12:15:43 +00:00
Felipe Pena f6221397ac MFH:
- Fixed bug #44251 (Question mark and an escaped singel quote lead to an exception)
- Fixed bug #41125 (PDO mysql + quote() + prepare() can result in seg fault)
  Patch by: tsteiner at nerdclub dot net
2008-10-10 12:11:36 +00:00
Ilia Alshanetsky d4523d6678 Back to dev 2008-10-09 23:16:41 +00:00
Ilia Alshanetsky 3e92d040f6 5.2.7RC1 2008-10-09 23:12:20 +00:00
Felipe Pena b66673da7d - MFH: Fixed bug pecl#9641 (Unable to add driver specific methods to PDOStatement) (patch by Christopher Jones) 2008-10-09 13:01:40 +00:00
Felipe Pena 4237bea6fe - MFH: Fixed bug #45575 (Segfault with invalid non-string as event handler callback)
patch by Christian seiler
2008-10-07 18:23:05 +00:00
Felipe Pena afc82532cc - MFH: Fixed bug #46247 (ibase_set_event_handler() is allowing to pass callback without event) 2008-10-07 15:31:48 +00:00
Ilia Alshanetsky bef0a451e3 MFB:
Fixed bug #46042 (memory leaks with reflection of mb_convert_encoding())
 Fixed bug #46110 (XMLWriter - openmemory() and openuri() leak memory on
  multiple calls).
 Fixed bug #46206 (pg_query_params/pg_execute convert passed values to
  strings).
2008-10-07 14:35:04 +00:00
Felipe Pena 73042afe10 - MFH: Fixed code ("Division by zero" anymore) 2008-10-07 12:53:08 +00:00
Felipe Pena 2f2a0d8259 - MFH: Fixed compiler warning 2008-10-06 15:14:17 +00:00
Felipe Pena 8b603dfa07 - BFN #45373 2008-10-06 15:11:43 +00:00
Felipe Pena 32f7c6a42d - MFH: Fixed bug #45373 (php crash on query with errors in params) 2008-10-06 14:37:13 +00:00
Derick Rethans 5bade4dcab - Updated to version 2008.7 (2008g) 2008-10-06 14:27:51 +00:00
Etienne Kneuss af17616e0e MFH: bug #46115 (Fixes nothing in 5.2, but sync code) 2008-10-06 13:45:42 +00:00
Etienne Kneuss 47d935664a Fix #46222 (Allow indirect modifications of Arrays inside ArrayObject + fix EG(uninitialized_zval_ptr) overwrite) 2008-10-05 14:49:25 +00:00
Arnaud Le Blanc 487e14d89c MFH: Fixed #46164 (stream_filter_remove() closes the stream) 2008-10-05 01:40:38 +00:00
Felipe Pena e5a7ea3293 MFH:
- Fixed bug #44991 (Compile Failure With freetds0.82)
  patch by:
  - jklowden at freetds dot org (ext/mssql)
  - matthias at dsx dot at (ext/pdo_dblib)
2008-10-04 13:19:22 +00:00
Felipe Pena 5e95dc593a - Fixed compiler warning 2008-10-04 13:11:36 +00:00
Jani Taskinen 619b8bb5ea reorder 2008-10-03 14:52:52 +00:00
Mikko Koppanen 4273a9b4dc Adds signal handling around popen/pclose in mail.c.
Related information on bugs #8992 and #14032
Original patch by D. Parthey
2008-10-03 13:59:33 +00:00
Felipe Pena df9dc12b1e - MFH: Fixed bug #46215 (json_encode mutates its parameter and has some class-specific state) 2008-10-02 03:41:24 +00:00
Antony Dovgal 3a4b2c8437 remove BOM 2008-10-01 12:37:15 +00:00
Kalle Sommer Nielsen 9cd9d67790 Fix bugs order 2008-10-01 11:09:02 +00:00
Scott MacVicar 33addf0ac5 MFH: Fix bug #46209 - Remove license condition that is no longer required. 2008-10-01 11:04:27 +00:00
Dmitry Stogov f289abf4d7 Fixed bug #43045 (SOAP encoding violation on "INF" for type double/float) 2008-10-01 08:42:26 +00:00
Rob Richards 9370d047ef BFN 2008-09-28 12:02:59 +00:00
Rob Richards 87ddfb9fbd MFH: fix bug #46191 (BC break: DOMDocument saveXML() doesn't accept null) 2008-09-28 12:01:21 +00:00
Antony Dovgal 763eda2f57 fix test 2008-09-24 13:13:26 +00:00
Felipe Pena eff8a93ded - MFH: Fixed bug #46157 (PDOStatement::fetchObject prototype error) 2008-09-23 23:10:01 +00:00
Rob Richards 842b350891 MFH: fix hints causing phpdoc crash 2008-09-22 15:10:24 +00:00
Felipe Pena d7064d84cb - BFN #46088 2008-09-22 13:17:58 +00:00
Felipe Pena c1b5abf605 - MFH: Fixed bug #46088 (RegexIterator::accept - segfault) 2008-09-22 13:15:16 +00:00
Greg Beaver e6f7b32deb fix Bug #46147: after stream seek, appending stream filter reads incorrect data 2008-09-22 01:25:44 +00:00
Arnaud Le Blanc fe49acfcb9 MFH: Fixed #46059 (Compile failure under IRIX 6.5.30 building posix.c) 2008-09-20 22:12:59 +00:00
Antony Dovgal 10b69e0f0f fix test 2008-09-18 13:26:05 +00:00
Antony Dovgal 31458c1a0d fix typo 2008-09-18 13:23:00 +00:00
Antony Dovgal 64125d247f fix test 2008-09-18 08:39:23 +00:00
Johannes Schlüter 0f6e281034 MFH Fix #44424 (Extending PDO/MySQL class with a __call() function doesn't work) 2008-09-16 23:37:35 +00:00
Antony Dovgal 03f74b711e MFH 2008-09-16 14:36:39 +00:00
Derick Rethans 8f037b3fe4 - Updated to version 2008.6 (2008f) 2008-09-15 18:03:10 +00:00
Dmitry Stogov 11900b10a3 Fixed bug #43053 (Regression: some numbers shown in scientific notation). (int-e at gmx dot de)
some 64bit test files may need to be fixed
2008-09-15 11:47:03 +00:00
Ilia Alshanetsky 929a21247c MFB: Fixed bug #45580 (levenshtein() crashes with invalid argument) 2008-09-14 05:15:15 +00:00
Moriyoshi Koizumi 772cf98e95 - MFH: Reenable ini_set("mbstring.internal_encoding", VALUE) to work on runtime.
(noticed by Antony. Thanks!)
2008-09-13 19:53:53 +00:00
Moriyoshi Koizumi 6a4057d932 - MFH: Properly initialize/finalize the library. This plugs the leaks caused by
onig_new().
2008-09-13 02:34:23 +00:00
Moriyoshi Koizumi a86756745c - MFH: WS 2008-09-13 00:24:12 +00:00
Moriyoshi Koizumi 0caab530d5 - MFH: Add missing =DIR 2008-09-13 00:14:49 +00:00
Moriyoshi Koizumi 1d7f071044 - Remove unexposed functions. 2008-09-12 23:56:06 +00:00
Moriyoshi Koizumi 2dd8e6ec27 - MFH: Use memcmp() for binary safety. 2008-09-12 23:37:21 +00:00
Felipe Pena 071deec12a - MFH: Fixed unexpected zval changes 2008-09-12 01:16:55 +00:00
Arnaud Le Blanc 114982b068 MFH: Fixed #46053 (SplFileObject::seek - Endless loop) 2008-09-11 15:32:15 +00:00
Arnaud Le Blanc 9b04ebc3c8 MFH: Fixed #46051 (SplFileInfo::openFile - memory overlap) 2008-09-11 15:24:12 +00:00
Rob Richards 914437fd97 BFN 2008-09-11 14:24:28 +00:00
Rob Richards 7d5fe7701b MFH: fix bug #46047 (SimpleXML converts empty nodes into object with nested array)
add test
2008-09-11 14:23:33 +00:00
Rob Richards 88bce658af MFH: fix bug #45901 (wddx_serialize_value crash with SimpleXMLElement object)
add test
2008-09-11 14:18:27 +00:00
Rob Richards 6a2daa2673 BFN 2008-09-10 16:29:42 +00:00
Rob Richards 01d4ee611e MFH: fix bug #46003 (isset on nonexisting node return unexpected results)
add test
2008-09-10 16:29:18 +00:00
Rob Richards 972a2192f4 BFN 2008-09-10 15:41:04 +00:00
Rob Richards 77494520a4 MFH: fix bug #46029 (Segfault in DOMText when using with Reflection) 2008-09-10 15:40:34 +00:00
Felipe Pena 56ed148d64 - MFB: Fixed mem. leak 2008-09-10 13:48:14 +00:00
Felipe Pena 098c1b5397 - Union #45226 + #18916 2008-09-10 13:26:38 +00:00
Rob Richards c5ff10fdc9 BFN
fix order
2008-09-10 11:22:40 +00:00
Rob Richards 6dc4be7100 MFH: fix bug #45553 (Using XPath for attributes with a namespace does not work)
add test
2008-09-10 11:21:48 +00:00
Arnaud Le Blanc 667a563da0 MFH: Fix test 2008-09-10 11:12:38 +00:00
Felipe Pena e4c744789d BFN #45226, #18916 2008-09-10 00:20:49 +00:00
Felipe Pena da2f2ab130 MFH:
- Merged fix from SF project (Import Jeff Lawsons patches for XML datetime bug fixes)
  Fixed bugs:
  #45226 (xmlrpc_set_type() segfaults with valid ISO8601 date string)
  #18916 (xmlrpc_set_type() "not working")
2008-09-10 00:09:04 +00:00
Arnaud Le Blanc fe30db5faf MFH: Fixed bug #46031 (Segfault in AppendIterator::next) 2008-09-09 19:44:25 +00:00
Antony Dovgal b1b7471f73 add missing file 2008-09-08 10:24:38 +00:00
Felipe Pena d4979adb80 BFN #46010 2008-09-07 23:10:07 +00:00
Felipe Pena b886771f69 - MFH: Fixed bug #46010 (warnings incorrectly generated for iv in ecb mode) 2008-09-07 23:00:31 +00:00
Johannes Schlüter 7b668c6a7d - MFH: The exact error message might differ (it's "Not owner" on Solaris) 2008-09-07 22:35:15 +00:00
Arnaud Le Blanc 21482dd1e6 MFH: More accurate max_file_size / upload_max_filesize (fixes #45124) 2008-09-07 14:18:11 +00:00
Arnaud Le Blanc 3062692e49 MFH: Fixed #43540 (rfc1867 handler newlength problem) 2008-09-06 17:19:15 +00:00
Alexey Zakhlestin 2450cf4c0f MFB: Fixed bug #45405 (snmp extension memory leak) 2008-09-06 08:18:38 +00:00
Dmitry Stogov f45b732abf Fixed bug #45860 (header() function fails to correctly replace all Status lines) 2008-09-02 13:22:00 +00:00
Dmitry Stogov bc053b7628 Fixed Bug #43958 (class name added into the error message) 2008-09-02 09:45:36 +00:00
Jani Taskinen 42eaadd128 - Fixed bug entries 2008-09-02 08:58:00 +00:00
Patrick van Kleef 331c423dbe MFH: - Added odbc.default_cursortype to control the ODBC cursormodel
(bug #43668)
2008-09-01 15:48:09 +00:00
Patrick van Kleef e624492e40 MFH: - Fixed code to use ODBC 3.52 datatypes for 64bit systems (bug #43666) 2008-09-01 15:36:56 +00:00
Dmitry Stogov 70063c1195 Fixed bug #42318 (problem with nm on AIX, not finding object files) 2008-09-01 13:15:15 +00:00
Jani Taskinen 69378b449c [DOC]- Fixed bug #45956 (parse_ini_file() does not return false with syntax errors in parsed file)
[DOC] note: change will be in since 5.2.7
2008-08-31 00:21:19 +00:00
Rasmus Lerdorf 6e1fad3505 Fix the assert 2008-08-30 18:28:01 +00:00
Rasmus Lerdorf a1ee496a50 Fix for bugs 13961, 39927 and 45947 2008-08-30 16:50:24 +00:00
David Soria Parra 8555d34ba5 MFH: Fixed bug #43782 (feof() does not detect timeout on socket) 2008-08-27 07:48:37 +00:00
Jani Taskinen 77e07a631a MFH 2008-08-26 23:26:27 +00:00
Jani Taskinen e83e18b8f8 MFH: sendmail mess cleared (PHP_PROG_SENDMAIL was not used at all, see also bug #42946) 2008-08-26 23:19:22 +00:00
Dmitry Stogov 9a4918af76 Fixed destruction of dl() loaded extensions 2008-08-22 15:31:38 +00:00
Antony Dovgal 72daf80c47 MFH: fix zend_register_functions() not displaying duplicate functions (reported by Gopal) 2008-08-22 14:52:47 +00:00
Felipe Pena 500d715ed3 - New tests 2008-08-22 13:40:54 +00:00
Sebastian Bergmann 20cc5b498f Fix ZTS build. 2008-08-22 08:17:02 +00:00
Felipe Pena ebdf8d3637 MFH:
- Fixed bug #45862 (get_class_vars is inconsistent with 'protected' and 'private' variables)
- Added some tests
2008-08-22 01:06:55 +00:00
Stanislav Malyshev 55612e2b06 report merged fix 2008-08-21 18:11:49 +00:00
Stanislav Malyshev 279f79570d merge fix for #43941 2008-08-21 18:10:48 +00:00
Dmitry Stogov a1672ca3e2 Fixed bug #45751 (Using auto_prepend_file crashes (out of scope stack address use)). (basant dot kukreja at sun dot com) 2008-08-21 13:42:36 +00:00
Dmitry Stogov d0c05b2643 Adder error code into error message 2008-08-21 11:27:42 +00:00
Rasmus Lerdorf b94207ccb8 Fix OSX build problem in this branch as well 2008-08-20 20:04:52 +00:00
Jani Taskinen 3a6cac2e6c MFH: - Fixed bug #44925 (preg_grep() modifies input array). (Nuno) 2008-08-20 01:21:47 +00:00
Jani Taskinen 244b57f272 MFH: test for bug #42737 2008-08-20 01:11:06 +00:00
Jani Taskinen 81d5bba936 MFH: Fix for bug #42737 (and #45850) 2008-08-20 00:52:13 +00:00
Felipe Pena 5b9e18dd61 - New test 2008-08-18 17:52:35 +00:00
Antony Dovgal 79b6a241ab MFH: fix bug #45028 (CRC32 output endianness is different between crc32() and hash()) 2008-08-18 14:33:00 +00:00
Jani Taskinen 1fd9b3f536 MFH: fix include 2008-08-18 10:50:10 +00:00
Antony Dovgal 2781ddf65e reverted because of test failures 2008-08-18 07:47:04 +00:00
Arnaud Le Blanc 42a2c5308e MFH: Fix tests (closes #45841) 2008-08-18 04:46:05 +00:00
Arnaud Le Blanc 6f44413558 MFH: Fixed bug #45392 (ob_start()/ob_end_clean() and memory_limit). 2008-08-18 04:09:38 +00:00
Moriyoshi Koizumi 6d8afbca87 - MFH: beware of signedness 2008-08-18 03:26:40 +00:00
Dmitry Stogov 16e6e2f04a Fixed double call to MSHUTDOWN in case of php-cgi -m 2008-08-15 07:30:31 +00:00
Felipe Pena 345ae37686 - Fixed tests (synced with 5_3 and HEAD) 2008-08-15 02:26:56 +00:00
Jani Taskinen 0e8700167a MFH: fix skipifs 2008-08-14 23:46:55 +00:00
Jani Taskinen 2712eb9b31 MFH 2008-08-14 23:45:22 +00:00
Jani Taskinen c901678ab1 MFH: fix tests 2008-08-14 23:42:01 +00:00
Jani Taskinen cb2b9fcf8b MFH 2008-08-14 22:51:50 +00:00
Jani Taskinen 26d7d2519d MFH:fix test 2008-08-14 21:56:13 +00:00
Jani Taskinen 1cd7ce6cf8 MFH: fix tests, add missing test 2008-08-14 20:57:13 +00:00
Jani Taskinen 8b0cd10768 do not leave crap behind 2008-08-14 20:55:31 +00:00
Jani Taskinen 84c5066dec MFH: fix tests 2008-08-14 20:53:31 +00:00
Jani Taskinen 7489a81e38 - Nuke annoying errors already silenced elsewhere too 2008-08-14 20:53:00 +00:00
Felipe Pena f26f786362 - New test 2008-08-14 19:17:13 +00:00
Felipe Pena 9915046344 - MFH: move declaration on top and fix build error 2008-08-14 16:34:30 +00:00
Jani Taskinen 85b00d1dd4 typoh 2008-08-13 19:43:48 +00:00
Antony Dovgal 02f8e3770d MFH: fix compile warnings (patch by Phil Oleson) 2008-08-13 08:09:55 +00:00
Dmitry Stogov fbb885cd6c Fixed bug #45805 (Crach on throwing exception from error handler) 2008-08-13 07:19:43 +00:00
Jani Taskinen 26f13b4b70 MFH: [DOC]- Added methods to change/disable --with-config-file-scan-dir=PATH at
MFH: [DOC]  startup:
MFH: [DOC]
MFH: [DOC]  To disable: Override default php.ini by using both -c and -n with
MFH: [DOC]              CGI/CLI or set "PHP_INI_SCAN_DIR" environment variable
MFH: [DOC]              to an empty string.
MFH: [DOC]
MFH: [DOC]  To change: Simply set "PHP_INI_SCAN_DIR" environment variable to point
MFH: [DOC]             to another path.
MFH: - Fixed bug #42604 ("make test" fails with  --with-config-file-scan-dir=/some/path)
MFH: - Implemented FR #45114 (Option to change --with-config-file-scan-dir)
2008-08-13 01:01:29 +00:00
Christian Seiler e08c90c68d - News: http://news.php.net/php.cvs/52239 2008-08-12 21:03:35 +00:00
Arnaud Le Blanc 43709499f9 MFH: clear stat cache in chroot() 2008-08-11 23:16:41 +00:00
Arnaud Le Blanc 6057b04dd0 news 2008-08-11 22:40:02 +00:00
Arnaud Le Blanc a1311b8bc2 MFH: Fixed #45181 (chdir() should clear relative entries in stat cache) 2008-08-11 22:39:42 +00:00
Christian Seiler b9ab70c0d2 - Fixed segmentation fault (test added) 2008-08-11 22:08:58 +00:00
Arnaud Le Blanc b28b6977bf MFH: Missing files in previous commit (Check the relevant path for open_basedir
in symlink())
2008-08-11 15:33:14 +00:00
Arnaud Le Blanc cf273715fb MFH: Check the relevant path for open_basedir in symlink() 2008-08-11 15:31:01 +00:00
Felipe Pena e249e02481 - BFN: #45765 2008-08-11 00:52:41 +00:00
Felipe Pena e0e1648359 - MFH: Fixed bug #45765 (ReflectionObject with default parameters of self::xxx cause an error) 2008-08-11 00:50:03 +00:00
Arnaud Le Blanc 02fc0f0255 MFH: Fixed bug #45581 (htmlspecialchars() double encoding &#x hex items) 2008-08-10 13:26:25 +00:00
Arnaud Le Blanc 969e64ad33 MFH:
Do not expand $target in symlink(). This made it impossible to symlink to a
symlink. This also caused the target to be wrongly expanded relatively to
the CWD when target was not an absolute path.
2008-08-10 11:55:26 +00:00
Felipe Pena 8df7dc9693 - Fixed test (LF) 2008-08-10 00:44:55 +00:00
Antony Dovgal 476aa6b90d disable the test on AIX 2008-08-09 22:35:34 +00:00
Antony Dovgal 1dd367b62d MFH: do not fail & segfault if malloc(0) returns NULL, that's expected 2008-08-09 22:01:35 +00:00
Arnaud Le Blanc 23cea0a4df *** empty log message *** 2008-08-08 09:34:08 +00:00
Antony Dovgal 5dd6078c14 not experimental anymore 2008-08-07 13:11:28 +00:00
Antony Dovgal ec9c01b2b2 remove EXPERIMENTAL flag 2008-08-07 13:07:33 +00:00
Antony Dovgal 78acd746d4 fix test
NaN != NaN
2008-08-07 08:52:11 +00:00
Kalle Sommer Nielsen 718da04673 Backport #45406 (session.serialize_handler declared by shared extension fails) to PHP_5_2 2008-08-06 21:33:13 +00:00
Kalle Sommer Nielsen b6c6759799 Backport fix for #45406 - Patch by oleg dot grenrus at dynamoid dot com 2008-08-06 21:28:38 +00:00
Jani Taskinen d9535fbf69 useless entry 2008-08-05 21:48:18 +00:00
Stanislav Malyshev dda8d74cb5 ok, clarify :) 2008-08-05 21:40:48 +00:00
Stanislav Malyshev 1ce390f2c2 add bugfix 2008-08-05 21:24:42 +00:00
Stanislav Malyshev adf6be4bfb fix memnstr bug, by Laurent Gaffie 2008-08-05 20:11:17 +00:00
Jani Taskinen ddcb5042f5 MFH:- Add test for bug #45712 2008-08-05 12:37:09 +00:00
Jani Taskinen c078127291 MFH:- Fixed bug #45705 (rfc822_parse_adrlist() modifies passed address parameter) 2008-08-04 21:16:22 +00:00
Moriyoshi Koizumi fecf5bc681 - MFH: Added .libs to .cvsignore 2008-08-04 21:11:19 +00:00
Moriyoshi Koizumi 108d9dd8e7 - MFH: More fixes for bug #45691 2008-08-04 21:06:50 +00:00
Jani Taskinen 09eebe78d8 MFH: proper version check 2008-08-04 20:54:20 +00:00
Jani Taskinen 59b98545e8 MFH 2008-08-03 12:11:13 +00:00
Jani Taskinen 843d6eecc3 MFH: no c++ comments in c files 2008-08-03 11:59:00 +00:00
Moriyoshi Koizumi cf4e80bd50 - MFH:Forgot to take account of the case when mbstring.language is processed
afterwards.
2008-08-03 00:04:30 +00:00
Moriyoshi Koizumi 2184c092d4 - MFH: Fixed bug #45691 (Some per-dir or runtime settings may leak into other requests). 2008-08-02 20:49:48 +00:00
Arnaud Le Blanc 70143b88a2 MFH: Avoid leaks when zlib streams can not be closed properly. 2008-08-02 02:36:59 +00:00
Moriyoshi Koizumi 840e508dc6 - MFH: Fixed bug #43993 (mb_substr_count() behaves differently to substr_count() with overlapping needles) 2008-08-01 22:58:20 +00:00
Moriyoshi Koizumi c530921598 - Move finalization code to the proper place 2008-08-01 22:53:20 +00:00
Moriyoshi Koizumi 22a0734469 - MFH: Fixed bug #44617 (wrong HTML entity output when substitute_character=entity). 2008-07-31 17:39:14 +00:00
Jani Taskinen ecc135ae21 MFH:- fix test 2008-07-31 11:50:54 +00:00
Rasmus Lerdorf 17d4ecdbb1 Fix test to test higher nesting level 2008-07-31 11:49:55 +00:00
Rasmus Lerdorf 7305654b69 Fix for bug #45030 2008-07-31 09:22:17 +00:00
Jani Taskinen 51a01a9a6d typo 2008-07-31 00:51:06 +00:00
Jani Taskinen 874a609723 MFH:- Fixed bug #45568 (ISAPI does not property clear auth_digest in header). 2008-07-31 00:49:16 +00:00
Jani Taskinen 461e12bb47 MFH:- Applied the missing parts to phpize.m4 for zend extension builds 2008-07-31 00:45:46 +00:00
Jani Taskinen d235cfb948 MFH: sync build stuff 2008-07-30 23:57:14 +00:00
Jani Taskinen fbca704073 MFH: sync 2008-07-30 23:27:26 +00:00
Rasmus Lerdorf a948a2605d We can afford a larger stack here and other json parsers out there
go deeper than 128.
2008-07-30 13:55:27 +00:00
Antony Dovgal 9ce5ea020f MFH: fix copy/paste error (patch by Mikko) 2008-07-29 10:42:59 +00:00
Antony Dovgal 635ce992a6 this shouldn't have been backported 2008-07-29 08:33:52 +00:00
Derick Rethans 7d8a27b3d1 - Updated to version 2008.5 (2008e) 2008-07-28 19:32:08 +00:00
David Soria Parra 4331f57597 - Fixed the fix for not requiring C++ always 2008-07-27 20:42:56 +00:00
Jani Taskinen e36ce120ae MFH:- Fixed the fix for not requiring C++ always 2008-07-27 15:05:48 +00:00
Jani Taskinen 68fb7a1252 MFH: Partial sync 2008-07-27 15:01:41 +00:00
Dmitry Stogov d3aa5682b1 Fix for bug #43487 (Wrong conversion of float to string) 2008-07-27 11:28:53 +00:00
Jani Taskinen 96fe692335 MFH: Fixed a minor problem in not enabling c++/g++ when not needed. 2008-07-25 12:36:59 +00:00
Felipe Pena 9c51f3c841 - MFB: Removed unused variable. 2008-07-24 16:01:59 +00:00
Dmitry Stogov d2f478af6a Fixed bug #45178 (memory corruption on assignment result of "new" by reference) 2008-07-24 11:47:14 +00:00
Dmitry Stogov ec1e964f5c Fixed test 2008-07-24 11:23:57 +00:00
Jani Taskinen 2b667e86f2 MFH: Fix test (bug #44985) 2008-07-23 14:15:37 +00:00
Jani Taskinen 4fafb9bddc MFH: some fixes to allow certain tests to pass regardless of system php.ini settins 2008-07-23 13:43:05 +00:00
Felipe Pena 99487f9ce3 - Change credits for #44246 2008-07-23 12:05:21 +00:00
Antony Dovgal 990de890fa MFH: invert the logics - FLAG_FCLOSE -> FLAG_NO_FCLOSE 2008-07-23 11:25:50 +00:00
Jani Taskinen 41e64a728c MFH: missing test 2008-07-23 10:30:41 +00:00
Antony Dovgal 8673660619 fix test 2008-07-23 10:26:55 +00:00
Antony Dovgal c7b3bc0d99 fix test 2008-07-23 09:29:32 +00:00
Antony Dovgal b54305bc7d MFH: add PHP_STREAM_FLAG_FCLOSE to zip streams 2008-07-23 09:09:20 +00:00
Antony Dovgal cffe7a2d3c MFH: add PHP_STREAM_FLAG_FCLOSE, bz2 streams can be closed with fclose() 2008-07-23 08:56:37 +00:00
Felipe Pena 20de4ba98f - BFN: #44246 2008-07-22 14:12:54 +00:00
Felipe Pena 4ca3f3b99a - MFH: Fixed bug #44246 (closedir() accepts a file resource opened by fopen()) 2008-07-22 14:11:25 +00:00
Jani Taskinen fbc897f4bb Tidy language and order 2008-07-21 20:02:34 +00:00
Felipe Pena 16fb63384c - MFB: Fixed securities issue detailed in CVE-2008-2665 and CVE-2008-2666.
(patch by Christian Hoffmann)
2008-07-21 19:34:45 +00:00
Dmitry Stogov 69bbae848e Added check for small ZEMD_MM_SEG_SIZE 2008-07-21 17:06:55 +00:00
Felipe Pena 71a5d27676 - BFN: #45556, #45555 2008-07-18 17:41:59 +00:00
Felipe Pena e6087a0548 - New test 2008-07-18 17:35:18 +00:00
Felipe Pena 157856f0d0 - Fixed bug #45556 (Return value from callback isn't freed) 2008-07-18 17:34:07 +00:00
Felipe Pena f3549c2276 - Fixed bug #45555 (Segfault with invalid non-string as register_introspection_callback)
(patch by chris_se at gmx dot ne)
2008-07-18 15:52:38 +00:00
Felipe Pena 721be7f87c - MFB: Fix ws 2008-07-18 14:56:58 +00:00
Derick Rethans 8a1172fe8f - Updated to version 2008.4.1 (2008d) 2008-07-18 13:46:15 +00:00
Pierre Joye 9df7af2326 - MFB: fix crash when some crafted font are given 2008-07-17 22:58:23 +00:00
Jani Taskinen e1fdf15fee -nuke weird char 2008-07-16 16:30:04 +00:00
Jani Taskinen 00fb7be378 MFH:- Prevent errors in CVS builds when bison is not there (for Sean :) 2008-07-16 16:23:59 +00:00
Jani Taskinen 273b3b8ac0 - Regenerated using more recent re2c 2008-07-16 14:26:30 +00:00
Jani Taskinen 65c908dcfe MFH:- Fixed bug #44127 (UNIX abstract namespace socket connect does not work) 2008-07-16 14:10:50 +00:00
Moriyoshi Koizumi 5b603fb1b7 * MFH: indentation fix only. 2008-07-15 18:07:42 +00:00
Jani Taskinen 2975bbb347 MFH: Fixed potentially confusing error message on failure when no errors are logged 2008-07-15 16:10:32 +00:00
Scott MacVicar 56f7e28f5d MFH: Fix bug when < is used within attribute. 2008-07-15 14:58:58 +00:00
Dmitry Stogov f4617349f8 Fixed bug #45151 (Crash with URI/file..php (filename contains 2 dots)) 2008-07-15 13:38:29 +00:00
Jani Taskinen 8fc55787d5 Fix news 2008-07-15 13:16:25 +00:00
Dmitry Stogov 51619fa391 Fixed bug #45423 (fastcgi parent process doesn't invoke php_module_shutdown before shutdown) (basant dot kukreja at sun dot com) 2008-07-15 13:10:07 +00:00
Felipe Pena 0bccc60ec2 - Reverted fix for #44197 (unsuitable for minor versions) 2008-07-15 11:20:06 +00:00
Jani Taskinen 9f0c8398d6 MFH: fix test 2008-07-15 01:57:37 +00:00
Jani Taskinen 02c937c251 MFH:- Fix tests (do NOT assume things in php.ini always to be same...or sane) 2008-07-15 01:00:17 +00:00
Rui Hirokawa 9609669572 MFPHP5_3 2008-07-13 01:36:15 +00:00
Felipe Pena b56b2d3013 BFN: #45220 2008-07-12 21:14:57 +00:00
Felipe Pena 0a0f24f8bf - Fixed bug #45220 (curl_read callback returns -1 when needs to return size_t (unsigned)) 2008-07-12 21:11:56 +00:00
Felipe Pena a256d977ff BFN: #45485 2008-07-12 01:44:04 +00:00
Felipe Pena 198a9af479 - BFN: #45449, #45486 2008-07-11 18:31:56 +00:00
Felipe Pena 6074163f74 - Fixed bug #45449 (filesize() regression using ftp wrapper) (patch by crrodriguez at suse dot de) 2008-07-11 18:28:25 +00:00
Felipe Pena 9a58cb0b3c - Fixed bug #45486 (mb_send_mail(); header 'Content-Type: text/plain; charset=' parsing incorrect) 2008-07-11 13:48:11 +00:00
Jani Taskinen 596f8bf885 MFH: silence warning 2008-07-11 13:12:18 +00:00
Felipe Pena fc2cf6e19f - Fixed bug #45485 (strip_tags and <?XML tag) 2008-07-11 12:16:06 +00:00
Felipe Pena b2f1de8924 - BFN: #45460 2008-07-11 11:18:58 +00:00
Felipe Pena a8c4bc3257 - Fixed the string sizes in imap_headerinfo 2008-07-11 11:09:05 +00:00
Felipe Pena 26da69af35 - Fixed bug #45460 (imap patch for fromlength fix in imap_headerinfo doesn't accept lengths of 1024) 2008-07-10 17:44:09 +00:00
Derick Rethans 72c5f9c02d - MFH: Memory issues
- MFH: // style comments
2008-07-08 18:02:32 +00:00
Scott MacVicar 6732d3f170 This change was backed out of 5.2 and is now in 5.3+ 2008-07-08 10:31:34 +00:00
Derick Rethans 5a70cfb8d7 - Updated to version 2008.4 (2008d) 2008-07-07 14:36:26 +00:00
Etienne Kneuss 1cd238a5df Avoid a leak on return_value 2008-07-07 00:02:22 +00:00
Dmitry Stogov 9132607dc7 Fixed bug #45352 (Segmentation fault because of tick function on second request) 2008-06-25 12:18:22 +00:00
Uwe Schindler c1bb953c71 MFH: Response to: [PHP-DEV] cleaning up the functions - any volunteers? :) 2008-06-22 18:10:33 +00:00
Christopher Jones 79301a3677 MFH:
Fix bug #45266 (Fix build with BDB 4)
Fix bug #45267 (Revert invalid assumption about BDB 4 locking; let DBA handle locking)
Fix bug #45268 (Fix error callback prototype)
2008-06-19 22:41:33 +00:00
Dmitry Stogov 764f6144d3 Fixed bug #45312 (Segmentation fault on second request for array functions). 2008-06-19 12:09:22 +00:00
Dmitry Stogov c55fc5cfa4 Fixed SOAP binding selection 2008-06-18 07:23:42 +00:00
Philip Olson cf6ae88c42 MFH: updated website team info 2008-06-18 05:21:08 +00:00
Felipe Pena c4bc06b480 - MF5.3: Improved warning message to call-time pass-by-reference when used with internal function
(http://news.php.net/php.internals/38252)
2008-06-15 18:31:10 +00:00
Rob Richards 4c65f7b0a2 BFN
fix ordering
2008-06-14 11:25:52 +00:00
Rob Richards b3a2fffb83 MFH: fixed bug #45251 (double free or corruption with setAttributeNode())
add test
2008-06-14 11:24:00 +00:00
Rui Hirokawa d2f21677d5 MFH 2008-06-13 14:49:19 +00:00
Steve Seear a640702789 Filesystem tests. 2008-06-11 12:38:16 +00:00
Dmitry Stogov 6cd3a97ce2 closeder/readdir/rewinddir must work only with directories 2008-06-11 09:02:09 +00:00
Dmitry Stogov 32b6c60dea Fixed memory leaks 2008-06-11 07:46:43 +00:00
Dmitry Stogov d3d8886e3e Fixed test (5.2 doesn't contain GC) 2008-06-11 07:46:28 +00:00
Philip Olson 4b898c5e57 MFH: fixed imap_listscan() proto 2008-06-11 02:32:22 +00:00
Antony Dovgal 26e2d61588 fix typo 2008-06-10 08:14:59 +00:00
Rasmus Lerdorf a583cad157 Merge from 5.3 branch - no point in echoeing the raw values here 2008-06-09 14:03:44 +00:00
Scott MacVicar c4fa4d5361 Backout fix for spaces in both the program name and argument name, this will be fixed in PHP 5.3+ only 2008-06-06 23:05:37 +00:00
Christopher Jones 50db74684d Update 2008-06-06 01:00:20 +00:00
Christopher Jones 8c9e028a76 (Bugs 41348, 41563, 42456, 42939) Appease the masses and fix
compilation with Oracle 8.1.  This gives cleaner support for older
releases now that PHP 5.3 is firmly Oracle 9.2+ only.  No plans to
MTH.
2008-06-06 00:59:44 +00:00
Christopher Jones 44e82f5789 Sync for PECL OCI8 1.2.5 release 2008-06-05 23:26:01 +00:00
Felipe Pena fba1e9d0c5 - Fixed bug #45139 (ReflectionProperty returns incorrect declaring class) 2008-06-01 03:08:59 +00:00
Matt Wilmas b3abcd8a34 MFH: Only check args once in php_array_diff_key/intersect_key, not on each iteration. This also makes sure ALL args are checked (pre-5.2.5 behavior) 2008-05-30 10:55:44 +00:00
Matt Wilmas 76a95184ef MFH: Fixed overflow crash (at least on Windows) in div_function with LONG_MIN / -1 2008-05-29 11:45:28 +00:00
Scott MacVicar 8063c11142 MFH: Fix a bug when command is quoted and parameters are quoted during call to exec, the result is that cmd.exe /c strips the first and last quote. 2008-05-29 11:41:50 +00:00
Matt Wilmas 70c5d7fcb5 Fixed tests on Windows 2008-05-29 07:33:03 +00:00
Ant Phillips 6e79f8f999 DOM tests from TestFest 2008-05-27 12:44:52 +00:00
Derick Rethans 8df7662306 - Updated to version 2008.3 (2008c) 2008-05-27 12:20:02 +00:00
Ilia Alshanetsky c29dac2f32 When dumping entire document to file via asXml() don't lose the encoding 2008-05-23 15:46:54 +00:00
Antony Dovgal fa6c5d5429 MFH 2008-05-21 12:31:31 +00:00
Dmitry Stogov e9b91783c2 proper fix 2008-05-20 07:41:23 +00:00
Ilia Alshanetsky 92512da2b0 MFB: Fixed bug #45004 (pg_insert() does not accept 4 digit timezone format) 2008-05-19 15:18:39 +00:00
Dmitry Stogov a806380376 Fixed win32 related realpath cache bug 2008-05-19 10:49:13 +00:00
Felipe Pena a0e34ecfee - Reverted the accidental previous commit 2008-05-18 22:32:33 +00:00
Felipe Pena 0f3bde23fd - MFB: Making compatible with 64bit platform 2008-05-18 21:50:58 +00:00
Ilia Alshanetsky 9d3385ff08 MFB: Added missing INI handler 2008-05-18 14:36:59 +00:00
David Soria Parra bb1840dcf9 Wrong file 2008-05-18 14:27:52 +00:00
David Soria Parra e3fbf25a02 MFH: Tests from Munich PHP Testfest 2008 2008-05-17 23:31:31 +00:00
Ilia Alshanetsky 4b7d16ec33 BFn 2008-05-14 23:53:54 +00:00
Antony Dovgal c7d2788311 fixed more titles 2008-05-14 13:10:30 +00:00
Antony Dovgal d01d7450a7 fix test titles 2008-05-14 13:07:17 +00:00
Felipe Pena 908b6e7808 - MFH: Add check for avoid segfault when trying instantiate PDORow manually 2008-05-14 12:34:10 +00:00
Christopher Jones 20eb83c3fe MFH: PECL #13523 (x86_64 build) 2008-05-13 16:06:55 +00:00
Christopher Jones d89a570ad0 MFH: new test 2008-05-13 00:17:59 +00:00
Antony Dovgal cafbf45c13 MFH 2008-05-12 15:31:20 +00:00
Felipe Pena 670ed18df4 - Fixed test 2008-05-12 11:24:07 +00:00
Antony Dovgal 86cf005ca2 MFH: revert patch that causes invalid reads/crashes on Linux 2008-05-12 08:47:29 +00:00
Matt Wilmas 1d30a554a4 MFH: Fixed test after fixing bug #44830 2008-05-12 05:09:28 +00:00
Matt Wilmas e4f6cab2c3 MFH: Fixed error message typo 2008-05-11 11:47:01 +00:00
Sebastian Bergmann 3bf703845f MFH: Add tests for ReflectionFunction::getExtension*(). 2008-05-11 04:57:27 +00:00
Sebastian Bergmann 032d0355e7 MFH: dos2unix *.phpt 2008-05-11 04:53:26 +00:00
Matt Wilmas e8d5d67ff2 MFH: Restore end check for "escape" strings 2008-05-10 09:18:27 +00:00
Matt Wilmas fcef7403cf MFH 2008-05-09 14:41:31 +00:00
Felipe Pena daf04269f5 - New tests 2008-05-09 14:17:42 +00:00
Scott MacVicar f73f5c1aa5 MFH: Fix compile error if _GNU_SOURCE is defined 2008-05-09 12:59:41 +00:00
Matt Wilmas 6c7ae8825d MFH: Test for loss of backslash at end of heredoc; For bug #44830 (Very minor issue with backslash in heredoc) 2008-05-09 11:06:45 +00:00
Matt Wilmas 4d478c9b67 MFH: Fix loss of backslash at end of heredoc; For bug #44830 (Very minor issue with backslash in heredoc) 2008-05-09 10:29:01 +00:00
Ant Phillips c6822cd936 Collect all the open_basedir security tests into one place 2008-05-09 08:36:41 +00:00
Ant Phillips f6b00dcf5b open_basedir tests for error_log 2008-05-09 08:33:55 +00:00
Dmitry Stogov c36ea5eb07 Fixed test 2008-05-08 09:15:49 +00:00
Antony Dovgal 9af8ebe9c7 fix test 2008-05-08 07:09:17 +00:00
Hannes Magnusson 88d4da5097 BFN 2008-05-07 20:03:26 +00:00
Hannes Magnusson 58be64ce2b MFH: Fixed bug #44712 (stream_context_set_params segfaults on invalid
arguments).
2008-05-07 20:02:42 +00:00
Hannes Magnusson fa6ab4ca82 MFH: Fixed bug #44716 (Progress notifications incorrect) 2008-05-07 20:01:56 +00:00
Christopher Jones fc4cfc3c83 MFH: new tests and test cleanup 2008-05-07 15:29:27 +00:00
Antony Dovgal fbbbd2b334 fix test title 2008-05-07 15:23:11 +00:00
Antony Dovgal 845e9001b3 reorder 2008-05-07 15:08:42 +00:00
David Coallier e5f281acf1 - Added NEWS item for fixation of bug 44811 2008-05-07 15:03:17 +00:00
David Coallier 3a37e3f5eb - Fixed Bug #44811: Improved error message when creating a new
SoapClient has invalid data.
2008-05-07 14:57:56 +00:00
David Coallier 8a346e1257 - Test for bug #44811 (Improve error message when new SoapClient has invalid data) 2008-05-07 14:56:37 +00:00
Ilia Alshanetsky fe5e6c081e MFB: Fixed bug #44836 (putenv() crashes, avoid direct reference of environ
in POSIX systems).
2008-05-06 18:03:52 +00:00
Ilia Alshanetsky 3ffd3e8b8c MFB: Specify the necessary precision 2008-05-05 23:05:06 +00:00
Ilia Alshanetsky 8fde9d7701 MFB: Fixed bug #44798 (Memory leak assigning value to attribute). 2008-05-05 23:00:13 +00:00
Andrey Hristov 05b2a03297 Fix build with libmysql 6.0.x 2008-05-05 12:30:38 +00:00
Etienne Kneuss c54c42dcf3 MFH: Fix protos 2008-05-04 21:19:18 +00:00
Rob Richards 029a4c8213 BFN 2008-05-04 15:26:25 +00:00
Rob Richards f5bf8c94f7 MFH: fix bug #44891 Memory leak using registerPHPFunctions and XSLT Variable 2008-05-04 15:15:01 +00:00
Zoe Slattery 8e23d68942 Committing corrected test from Eric Stewart 2008-05-03 20:34:16 +00:00
Etienne Kneuss b6e7b8e09a MFB: Fix #44838 (static class reference restricting overwriting) 2008-05-03 16:00:40 +00:00
Derick Rethans 0685a79356 - Fixed an issue in date() where a : was printed for the O modifier after a P
modifier was used.
2008-05-02 21:36:00 +00:00
Ant Phillips 6bec04b0a3 open_basedir tests for directory functions 2008-05-01 12:36:45 +00:00
Ant Phillips 18da1a2ff4 open_basedir tests for directory functions 2008-05-01 11:46:20 +00:00
Ilia Alshanetsky ba307b2aff Back to dev 2008-04-30 18:33:33 +00:00
Ilia Alshanetsky 6a7f02001d 5.2.6 2008-04-30 18:27:56 +00:00
Ant Phillips ab211d72a3 Fix session test failures as reported by Antony Dovgal.
These were caused by the tests assuming default values for some session
configuration settings, in particular session.save_path and session.name.
The tests now explicitly set these settings in the --INI-- section.
2008-04-30 15:20:16 +00:00
Ant Phillips 3946b4727b Break up complicated rename tests into some smaller more consumable chunks 2008-04-30 13:53:49 +00:00
Ant Phillips 3a30d703c0 Fix session test failures as reported by Antony Dovgal.
These were caused by the tests assuming default values for some session
configuration settings, in particular session.save_path and session.name.
The tests now explicitly set these settings in the --INI-- section.
2008-04-30 09:27:59 +00:00
Scott MacVicar ad86c485cd MFH Fixed bug #44720 (Prevent infinite recursion within session_register) 2008-04-29 14:42:38 +00:00
Ant Phillips 597adbfef1 More session tests to improve code coverage for untested extension code 2008-04-29 09:24:17 +00:00
Ant Phillips 2d2ad8e8d3 More session tests to improve code coverage for untested extension code 2008-04-29 08:57:12 +00:00
Jani Taskinen f2c9167ebb MFH 2008-04-28 12:30:33 +00:00
Ant Phillips 0ccb772f10 Extra open_basedir tests 2008-04-24 16:40:53 +00:00
Ant Phillips 138a1160ab Allow for chmod() to fail on symbolic links 2008-04-24 13:58:29 +00:00
Ant Phillips e9da49eaf5 open_basedir tests for file system functions (v5.2, 5.3 and 6.0 branches) 2008-04-23 14:10:23 +00:00
Ant Phillips 64de2d2d45 New set of session extension tests for PHP 5.2 branch.
These hopefully test a reasonable set of basic, error and variations for
the twenty or so session functions. Note however that they do not
test all the session configuration settings, nor do they test anything
with register_globals enabled.
2008-04-22 16:04:00 +00:00
Ant Phillips 1f4fa0ba1f These tests were backported from the PHP 6.0 branch, which in turn were ported from this branch and then updated to remove any dependencies on register_globals. With register_globals removed they are useful tests to run against the 5.X branches. 2008-04-22 15:58:34 +00:00
Robin Fernandes 1d943ee85e Fix some ereg tests for 64bit platforms. 2008-04-22 15:31:56 +00:00
Felipe Pena 5c605854b8 - Fixed tests 2008-04-20 01:55:05 +00:00
Felipe Pena 11d09ac646 - Better error message 2008-04-20 01:43:18 +00:00
Antony Dovgal 269aac9ee9 fix test 2008-04-18 08:22:01 +00:00
Ilia Alshanetsky 7204e7ba5a BFN 2008-04-18 01:00:56 +00:00
Antony Dovgal 59dde7cbeb make Matt happy =) 2008-04-17 11:48:53 +00:00
Felipe Pena 11a13337ff - Fix typo 2008-04-17 11:04:49 +00:00
Derick Rethans 8649483a69 - Fixed bug #44703 (htmlspecialchars() does not detect bad character set
argument).
2008-04-16 17:21:46 +00:00
Antony Dovgal d9b443095f change %d to %ld and silence the warning 2008-04-16 08:54:44 +00:00
Felipe Pena 9db0be61ad Fixed bug #44703 (htmlspecialchars() does not detect bad character set argument) (patch by Andy Wharmby) 2008-04-11 19:01:25 +00:00
Robin Fernandes 29c12bd254 Fix test parse_url_variation_002.phpt for 64bit platforms. 2008-04-11 14:35:04 +00:00
Antony Dovgal ef1f2c1b7b fix tests 2008-04-11 11:06:18 +00:00
Antony Dovgal 1e20b1ed7d MFH: fix 2 segfaults in ZTS mode 2008-04-11 11:00:24 +00:00
Steve Seear 9d700f942f POSIX extension error tests 2008-04-11 09:32:32 +00:00
Steve Seear 35ca4a5cb4 POSIX extension variation tests 2008-04-11 09:27:42 +00:00
Robin Fernandes fdb9b9d8c8 Adding some tests for ereg and url functions. 2008-04-11 08:57:11 +00:00
Ilia Alshanetsky a1f0e80436 Back to dev 2008-04-10 22:31:09 +00:00
Ilia Alshanetsky 1e29c1716d 5.2.6RC5 2008-04-10 22:24:05 +00:00
Christopher Jones 7788b67557 Bump OCI8 version to 1.2.5 (This change is for 5.2 branch only) 2008-04-10 21:53:46 +00:00
Nuno Lopes 5baa766b21 MFB53 2008-04-10 19:16:00 +00:00
Nuno Lopes 60d622bdb0 MFB5.3: fix SKIPIF 2008-04-10 19:09:49 +00:00
Philip Olson 63ca897356 MFH: Updated the documentation credits 2008-04-10 05:32:26 +00:00
Scott MacVicar b584600e1d Fix heredoc handling. (Patch by Matt Wilmas) 2008-04-09 21:40:13 +00:00
Felipe Pena 52127174e2 Fixed bug #44678 (spliti error message includes wrong function name) 2008-04-09 13:47:35 +00:00
Dmitry Stogov a548d2f19b Fixed bug #44673 (With CGI argv/argc starts from arguments, not from script) 2008-04-09 09:16:40 +00:00
Ilia Alshanetsky edf54b5468 MFB: Bug #44650 escaepshellscmd() does not check arg count (port from 5.3) 2008-04-08 17:17:07 +00:00
Joe Orton 8611785073 MFH: Fixed bug #32979 (OpenSSL stream->fd casts broken in 64-bit build)
(stotty at tvnet dot hu)
MFH: Fix another case of a broken stream->fd cast in 64-bit builds.
2008-04-08 14:11:49 +00:00
Jani Taskinen 8f6f281866 MFH: Fixed test on systems where order is not guaranteed 2008-04-08 10:35:36 +00:00
Jani Taskinen a9f2587716 MFH: - Fixed bug #44667 (proc_open() does not handle pipes with the mode "wb" correctly) 2008-04-08 08:45:52 +00:00
Jani Taskinen 5f7df8099a MF53: Fix tests 2008-04-08 08:45:04 +00:00
Ilia Alshanetsky b615180021 MFB: various bug fixes 2008-04-08 00:03:34 +00:00
Antony Dovgal 7a4f2f9a00 fix test 2008-04-07 12:14:46 +00:00
Antony Dovgal 339414deea initialize variable 2008-04-07 10:44:03 +00:00
Marcus Boerger 98f4d8c5f6 - MFH add new tests 2008-04-06 17:53:35 +00:00
Felipe Pena e8795126ea Fixed bug #44591 (imagegif's filename parameter) 2008-04-04 17:39:52 +00:00
Derick Rethans d80a51181a - Fixed typo. 2008-04-04 07:26:41 +00:00
Ilia Alshanetsky cb9be83c31 Back to dev 2008-04-04 00:16:53 +00:00
Ilia Alshanetsky 62c865e21f 5.2.6RC4 2008-04-04 00:12:22 +00:00
Felipe Pena 1054bfbb0b - Fixed tests 2008-04-03 22:01:59 +00:00
Dmitry Stogov 889ba3c824 fixed name 2008-04-03 14:44:19 +00:00
Dmitry Stogov 1dd17ad54a - Fixed possible stack buffer overflow in FastCGI SAPI. (Andrey Nigmatulin)
- Fixed sending of uninitialized paddings which may contain some information.
  (Andrey Nigmatulin)
2008-04-03 10:24:44 +00:00
Ilia Alshanetsky 357cadb362 MFB: imap bug fixes 2008-04-02 16:31:51 +00:00
Antony Dovgal 8f16e0b75c MFH 2008-04-02 14:56:43 +00:00
Derick Rethans b0b7f4eed1 - MFH: Fixed a bug in formatting timestamps when DST is active in the default
timezone.
2008-03-31 09:12:15 +00:00
Felipe Pena 3e663ebfef Fixed bug #44564 (escapeshellarg removes UTF-8 multi-byte characters) 2008-03-30 12:17:39 +00:00
Felipe Pena fd6f77d569 Fixed bug #44557 (Crash in imap_setacl when supplied integer as username) (patch by Thomas Jarosch) 2008-03-28 16:43:49 +00:00
Ilia Alshanetsky dd040e75c3 Back to dev 2008-03-27 22:53:49 +00:00
3281 changed files with 246291 additions and 37388 deletions

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>php-5.2</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
+15 -37
View File
@@ -11,7 +11,7 @@ all: $(all_targets)
@echo "Don't forget to run 'make test'."
@echo
build-modules: $(PHP_MODULES)
build-modules: $(PHP_MODULES) $(PHP_ZEND_EX)
libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@
@@ -73,6 +73,11 @@ PHP_TEST_SHARED_EXTENSIONS = ` \
for i in $(PHP_MODULES)""; do \
. $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \
done; \
fi; \
if test "x$(PHP_ZEND_EX)" != "x"; then \
for i in $(PHP_ZEND_EX)""; do \
. $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \
done; \
fi`
test: all
@@ -80,50 +85,23 @@ test: all
TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(PHP_EXECUTABLE) $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -U -d extension_dir=modules/ $(PHP_TEST_SHARED_EXTENSIONS) tests/; \
$(PHP_EXECUTABLE) $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -d extension_dir=modules/ $(PHP_TEST_SHARED_EXTENSIONS) tests/; \
elif test ! -z "$(SAPI_CLI_PATH)" && test -x "$(SAPI_CLI_PATH)"; then \
INI_FILE=`$(top_builddir)/$(SAPI_CLI_PATH) -r 'echo php_ini_loaded_file();'`; \
INI_FILE=`$(top_builddir)/$(SAPI_CLI_PATH) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
if test "$$INI_FILE"; then \
$(EGREP) -v '^extension[\t\ ]*=' "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
$(EGREP) -v '^(zend_)?extension(_debug)?(_ts)?[\t\ ]*=' "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
else \
echo > $(top_builddir)/tmp-php.ini; \
fi; \
INI_SCANNED_PATH=`$(top_builddir)/$(SAPI_CLI_PATH) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
if test "$$INI_SCANNED_PATH"; then \
INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
$(EGREP) -h -v '^(zend_)?extension(_debug)?(_ts)?[\t\ ]*=' "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
fi; \
TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(top_builddir)/$(SAPI_CLI_PATH) $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -c $(top_builddir)/tmp-php.ini -U -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi
utest: all
-@if test ! -z "$(SAPI_CLI_PATH)" && test -x "$(SAPI_CLI_PATH)"; then \
INI_FILE=`$(top_builddir)/$(SAPI_CLI_PATH) -r 'echo php_ini_loaded_file();'`; \
if test "$$INI_FILE"; then \
$(EGREP) -v '^extension[\t\ ]*=' "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
else \
echo > $(top_builddir)/tmp-php.ini; \
fi; \
TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(top_builddir)/$(SAPI_CLI_PATH) $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -c $(top_builddir)/tmp-php.ini -u -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi
ntest: all
-@if test ! -z "$(SAPI_CLI_PATH)" && test -x "$(SAPI_CLI_PATH)"; then \
INI_FILE=`$(top_builddir)/$(SAPI_CLI_PATH) -r 'echo php_ini_loaded_file();'`; \
if test "$$INI_FILE"; then \
$(EGREP) -v '^extension[\t\ ]*=' "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
else \
echo > $(top_builddir)/tmp-php.ini; \
fi; \
TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(top_builddir)/$(SAPI_CLI_PATH) $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -c $(top_builddir)/tmp-php.ini -N -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
$(top_builddir)/$(SAPI_CLI_PATH) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi
+488 -144
View File
@@ -1,40 +1,411 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
27 Mar 2008 , PHP 5.2.6RC3
- Properly address incomplete multibyte chars inside escapeshellcmd() (Ilia,
Stefan Esser)
- Fix integer overflow in printf(). (Stas, Maksymilian Aciemowicz)
- Fixed bug #44487 (call_user_method_array issues a warning when throwing
an exception). (David Soria Parra)
- Fixed bug #44478 (Inconsistent behaviour when assigning new nodes).
(Rob, Felipe)
- Fixed bug #44445 (email validator does not handle domains starting/ending
with a -). (Ilia)
- Fixed bug #44440 (st_blocks undefined under BeOS). (Felipe)
- Fixed bug #44394 (Last two bytes missing from output). (Felipe)
- Fixed bug #44388 (Crash inside exif_read_data() on invalid images) (Ilia)
- Fixed bug #44373 (PDO_OCI extension compile failed). (Felipe)
- Fixed bug #43677 (Inconsistent behaviour of include_path set with
php_value). (manuel at mausz dot at)
- Fixed bug #43614 (incorrect processing of numerical string keys of array in
arbitrary serialized data). (Dmitriy Buldakov, Felipe)
- Fixed bug #42177 (Warning "array_merge_recursive(): recursion detected" comes
again...). (Felipe)
- Fixed bug #41828 (Failing to call RecursiveIteratorIterator::__construct()
causes a sefault). (Etienne)
12 Feb 2009, PHP 5.2.9RC2
- Fixed bug #47353 (crash when creating a lot of objects in object destructor).
(Tony)
- Fixed bug #47322 (sscanf %d doesn't work). (Felipe)
- Fixed bug #46026 (bz2.decompress/zlib.inflate filter tries to decompress after
end of stream). (Greg)
06 Mar 2008, PHP 5.2.6RC2
- Fixed bug #44333 (SEGFAULT when using mysql_pconnect() with client_flags).
(Felipe)
- Fixed bug #44306 (Better detection of MIPS processors on Windows). (Ilia)
- Fixed bug #44166 (Parameter handling flaw in PDO::getAvailableDrivers()).
02 Feb 2009, PHP 5.2.9RC1
- Changed __call() to be invoked on private/protected method access, similar to
properties and __get(). (Andrei)
- Added optional sorting type flag parameter to array_unique(). Default is
SORT_STRING. (Andrei)
- Fixed a crash on extract in zip when files or directories entry names contain
a relative path. (Pierre)
- Fixed error conditions handling in stream_filter_append(). (Arnaud)
- Fixed zip filename property read. (Pierre)
- Fixed explode() behavior with empty string to respect negative limit. (Shire)
- Fixed security issue in imagerotate(), background colour isn't validated
correctly with a non truecolour image. Reported by Hamid Ebadi,
APA Laboratory (Fixes CVE-2008-5498). (Scott)
- Fixed a segfault when malformed string is passed to json_decode(). (Scott)
- Fixed bug in xml_error_string() which resulted in messages being
off by one. (Scott)
- Fixed bug #47282 (FILTER_VALIDATE_EMAIL is marking valid email addresses
as invalid). (Ilia)
- Fixed bug #47220 (segfault in dom_document_parser in recovery mode). (Rob)
- Fixed bug #47217 (content-type is not set properly for file uploads).
(Ilia)
- Fixed bug #42505 (new sendmail default breaks on Netware platform)
(Guenter Knauf)
- Fixed bug #40013 (php_uname() does not return nodename on Netware
(Guenter Knauf)
- Fixed bug #47174 (base64_decode() interprets pad char in mid string as
terminator). (Ilia)
- Fixed bug #47165 (Possible memory corruption when passing return value by
reference). (Dmitry)
- Fixed bug #47152 (gzseek/fseek using SEEK_END produces strange results).
(Felipe)
- Fixed bug #47131 (SOAP Extension ignores "user_agent" ini setting). (Ilia)
- Fixed bug #47104 (Linking shared extensions fails with icc). (Jani)
- Fixed bug #47109 (Memory leak on $a->{"a"."b"} when $a is not an object).
(Etienne, Dmitry)
- Fixed bug #47048 (Segfault with new pg_meta_data). (Felipe)
- Fixed bug #47042 (PHP cgi sapi is removing SCRIPT_FILENAME for non apache).
(Sriram Natarajan)
- Fixed bug #47037 (No error when using fopen with empty string).
(Cristian Rodriguez R., Felipe)
- Fixed bug #47035 (dns_get_record returns a garbage byte at the end of a TXT
record). (Felipe)
- Fixed bug #47027 (var_export doesn't show numeric indices on ArrayObject).
(Derick)
- Fixed bug #46985 (OVERWRITE and binary mode does not work, regression introduced in
5.2.8). (Pierre)
- Fixed bug #46973 (IPv6 address filter rejects valid address). (Felipe)
- Fixed bug #46964 (Fixed pdo_mysql build with older version of MySQL). (Ilia)
- Fixed bug #46959 (Unable to disable PCRE). (Scott)
- Fixed bug #46918 (imap_rfc822_parse_adrlist host part not filled in correctly).
(Felipe)
- Fixed bug #46889 (Memory leak in strtotime()). (Derick)
- Fixed bug #46887 (Invalid calls to php_error_docref()).
(oeriksson at mandriva dot com, Ilia)
- Fixed bug #46873 (extract($foo) crashes if $foo['foo'] exists). (Arnaud)
- Fixed bug #46843 (CP936 euro symbol is not converted properly).
(ty_c at cybozuy dot co dot jp, Moriyoshi)
- Fixed bug #46798 (Crash in mssql extension when retrieving a NULL value
inside a binary or image column type). (Ilia)
- Fixed bug #46782 (fastcgi.c parse error). (Matt)
- Fixed bug #46760 (SoapClient doRequest fails when proxy is used). (Felipe)
- Fixed bug #46748 (Segfault when an SSL error has more than one error). (Scott)
- Fixed bug #46739 (array returned by curl_getinfo should contain content_type key).
(Mikko)
- Fixed bug #46701 (Creating associative array with long values in the key fails
on 32bit linux). (Shire)
- Fixed bug #46699 (xml_parse crash when parser is namespace aware). (Rob)
- Fixed bug #46419 (Elements of associative arrays with NULL value are lost).
(Dmitry)
- Fixed bug #46282 (Corrupt DBF When Using DATE). (arne at bukkie dot nl)
- Fixed bug #46005 (User not consistently logged under Apache2).
(admorten at umich dot edu, Stas)
- Fixed bug #45996 (libxml2 2.7 causes breakage with character data
in xml_parse()). (Rob)
- Fixed bug #45239 (Encoding detector hangs with mbstring.strict_detection
enabled). (Moriyoshi)
- Fixed bug #45161 (Reusing a curl handle leaks memory). (Mark Karpeles, Jani)
- Fixed bug #44336 (Improve pcre UTF-8 string matching performance).
(frode at coretrek dot com, Nuno)
- Fixed bug #35975 (Session cookie expires date format isn't the most compatible.
Now matches that of setcookie()). (Scott)
27 Feb 2008, PHP 5.2.6RC1
08 Dec 2008, PHP 5.2.8
- Reverted bug fix #42718 that broke magic_quotes_gpc (Scott)
04 Dec 2008, PHP 5.2.7
- Upgraded PCRE to version 7.8 (Fixes CVE-2008-2371). (Ilia)
- Updated timezone database to version 2008.9. (Derick)
- Upgraded bundled libzip to 0.9.0. (Pierre)
- Added logging option for error_log to send directly to SAPI. (Stas)
- Added PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION,
PHP_EXTRA_VERSION, PHP_VERSION_ID, PHP_ZTS and PHP_DEBUG constants. (Pierre)
- Added "PHP_INI_SCAN_DIR" environment variable which can be used to
either disable or change the compile time ini scan directory (FR #45114).
(Jani)
- Fixed missing initialization of BG(page_uid) and BG(page_gid),
reported by Maksymilian Arciemowicz. (Stas)
- Fixed memory leak inside sqlite_create_aggregate(). (Felipe)
- Fixed memory leak inside PDO sqlite's sqliteCreateAggregate() method.
(Felipe)
- Fixed a crash inside gd with invalid fonts (Fixes CVE-2008-3658). (Pierre)
- Fixed a possible overflow inside memnstr (Fixes CVE-2008-3659).
(LaurentGaffie)
- Fixed incorrect php_value order for Apache configuration, reported by
Maksymilian Arciemowicz. (Stas)
- Fixed memory leak inside readline_callback_handler_remove() function.
(Felipe)
- Fixed sybase_fetch_*() to continue reading after CS_ROW_FAIL status (Timm)
- Fixed a bug inside dba_replace() that could cause file truncation
withinvalid keys. (Ilia)
- Fixed memory leak inside readline_callback_handler_install() function.(Ilia)
- Fixed memory leak inside readline_completion_function() function. (Felipe)
- Fixed stream_get_contents() when using $maxlength and socket is notclosed.
indeyets [at] php [dot] net on #46049. (Arnaud)
- Fixed stream_get_line() to behave as documented on non-blocking streams.
(Arnaud)
- Fixed endless loop in PDOStatement::debugDumpParams().
(jonah.harris at gmail dot com)
- Fixed ability to use "internal" heaps in extensions. (Arnaud, Dmitry)
- Fixed weekdays adding/subtracting algorithm. (Derick)
- Fixed some ambiguities in the date parser. (Derick)
- Fixed a bug with the YYYY-MM format not resetting the day correctly.
(Derick)
- Fixed a bug in the DateTime->modify() methods, it would not use the advanced
relative time strings. (Derick)
- Fixed extraction of zip files or directories when the entry name is a
relative path. (Pierre)
- Fixed read or write errors for large zip archives. (Pierre)
- Fixed security issues detailed in CVE-2008-2665 and CVE-2008-2666.
(Christian Hoffmann)
- Fixed simplexml asXML() not to lose encoding when dumping entire
document to file. (Ilia)
- Fixed a crash inside PDO when trying instantiate PDORow manually.
(Felipe)
- Fixed build failure of ext/mysqli with libmysql 6.0 - missing
rplfunctions. (Andrey)
- Fixed a regression when using strip_tags() and < is within an
attribute.(Scott)
- Fixed a crash on invalid method in ReflectionParameter constructor.
(Christian Seiler)
- Reverted fix for bug #44197 due to behaviour change in minor version.
(Felipe)
- Fixed bug #46732 (mktime.year description is wrong). (Derick)
- Fixed bug #46696 (cURL fails in upload files with specified content-type).
(Ilia)
- Fixed bug #46673 (stream_lock call with wrong parameter). (Arnaud)
- Fixed bug #46649 (Setting array element with that same array produces
inconsistent results). (Arnaud)
- Fixed bug #46626 (mb_convert_case does not handle apostrophe correctly).
(Ilia)
- Fixed bug #46543 (ibase_trans() memory leaks when using wrong parameters).
(Felipe)
- Fixed bug #46521 (Curl ZTS OpenSSL, error in config.m4 fragment).
(jd at cpanel dot net)
- Fixed bug #46496 (wddx_serialize treats input as ISO-8859-1). (Mark Karpeles)
- Fixed bug #46427 (SoapClient() stumbles over its "stream_context" parameter).
(Dmitry, Herman Radtke)
- Fixed bug #46426 (offset parameter of stream_get_contents() does not
workfor "0"). (Felipe)
- Fixed bug #46406 (Unregistering nodeclass throws E_FATAL). (Rob)
- Fixed bug #46389 (NetWare needs small patch for _timezone).
(patch by guenter@php.net)
- Fixed bug #46388 (stream_notification_callback inside of object destroys
object variables). (Felipe)
- Fixed bug #46381 (wrong $this passed to internal methods causes segfault).
(Tony)
- Fixed bug #46379 (Infinite loop when parsing '#' in one line file). (Arnaud)
- Fixed bug #46366 (bad cwd with / as pathinfo). (Dmitry)
- Fixed bug #46360 (TCP_NODELAY constant for socket_{get,set}_option).
(bugs at trick dot vanstaveren dot us)
- Fixed bug #46343 (IPv6 address filter accepts invalid address). (Ilia)
- Fixed bug #46335 (DOMText::splitText doesn't handle multibyte characters).
(Rob)
- Fixed bug #46323 (compilation of simplexml for NetWare breaks).
(Patch by guenter [at] php [dot] net)
- Fixed bug #46319 (PHP sets default Content-Type header for HTTP 304
response code, in cgi sapi). (Ilia)
- Fixed bug #46313 (Magic quotes broke $_FILES). (Arnaud)
- Fixed bug #46308 (Invalid write when changing property from inside getter).
(Dmitry)
- Fixed bug #46292 (PDO::setFetchMode() shouldn't requires the 2nd arg when
using FETCH_CLASSTYPE). (Felipe)
- Fixed bug #46274, #46249 (pdo_pgsql always fill in NULL for empty BLOB and
segfaults when returned by SELECT). (Felipe)
- Fixed bug #46271 (local_cert option is not resolved to full path). (Ilia)
- Fixed bug #46247 (ibase_set_event_handler() is allowing to pass callback
without event). (Felipe)
- Fixed bug #46246 (difference between call_user_func(array($this, $method))
and $this->$method()). (Dmitry)
- Fixed bug #46222 (ArrayObject EG(uninitialized_var_ptr) overwrite).
(Etienne)
- Fixed bug #46215 (json_encode mutates its parameter and has some
class-specific state). (Felipe)
- Fixed bug #46206 (pg_query_params/pg_execute convert passed values to
strings). (Ilia)
- Fixed bug #46191 (BC break: DOMDocument saveXML() doesn't accept null).
(Rob)
- Fixed bug #46164 (stream_filter_remove() closes the stream). (Arnaud)
- Fixed bug #46157 (PDOStatement::fetchObject prototype error). (Felipe)
- Fixed bug #46147 (after stream seek, appending stream filter reads
incorrect data). (Greg)
- Fixed bug #46139 (PDOStatement->setFetchMode() forgets FETCH_PROPS_LATE).
(chsc at peytz dot dk, Felipe)
- Fixed bug #46127 (php_openssl_tcp_sockop_accept forgets to set context
on accepted stream) (Mark Karpeles, Pierre)
- Fixed bug #46110 (XMLWriter - openmemory() and openuri() leak memory on
multiple calls). (Ilia)
- Fixed bug #46088 (RegexIterator::accept - segfault). (Felipe)
- Fixed bug #46082 (stream_set_blocking() can cause a crash in some
circumstances). (Felipe)
- Fixed bug #46064 (Exception when creating ReflectionProperty object
on dynamicly created property). (Felipe)
- Fixed bug #46059 (Compile failure under IRIX 6.5.30 building posix.c).
(Arnaud)
- Fixed bug #46053 (SplFileObject::seek - Endless loop). (Arnaud)
- Fixed bug #46051 (SplFileInfo::openFile - memory overlap). (Arnaud)
- Fixed bug #46047 (SimpleXML converts empty nodes into object with
nested array). (Rob)
- Fixed bug #46031 (Segfault in AppendIterator::next). (Arnaud)
- Fixed bug #46029 (Segfault in DOMText when using with Reflection). (Rob)
- Fixed bug #46026 (bzip2.decompress/zlib.inflate filter tries to decompress
after end of stream). (Keisial at gmail dot com, Greg)
- Fixed bug #46024 (stream_select() doesn't return the correct number).
(Arnaud)
- Fixed bug #46010 (warnings incorrectly generated for iv in ecb mode).
(Felipe)
- Fixed bug #46003 (isset on nonexisting node return unexpected results). (Rob)
- Fixed bug #45956 (parse_ini_file() does not return false with syntax errors
in parsed file). (Jani)
- Fixed bug #45901 (wddx_serialize_value crash with SimpleXMLElement object).
(Rob)
- Fixed bug #45862 (get_class_vars is inconsistent with 'protected' and
'private' variables). (ilewis at uk dot ibm dot com, Felipe)
- Fixed bug #45860 (header() function fails to correctly replace all Status
lines). (Dmitry)
- Fixed bug #45805 (Crash on throwing exception from error handler). (Dmitry)
- Fixed bug #45765 (ReflectionObject with default parameters of self::xxx cause
an error). (Felipe)
- Fixed bug #45751 (Using auto_prepend_file crashes (out of scope stack address
use)). (basant dot kukreja at sun dot com)
- Fixed bug #45722 (mb_check_encoding() crashes). (Moriyoshi)
- Fixed bug #45705 (rfc822_parse_adrlist() modifies passed address parameter).
(Jani)
- Fixed bug #45691 (Some per-dir or runtime settings may leak into other
requests). (Moriyoshi)
- Fixed bug #45581 (htmlspecialchars() double encoding &#x hex items). (Arnaud)
- Fixed bug #45580 (levenshtein() crashes with invalid argument). (Ilia)
- Fixed bug #45575 (Segfault with invalid non-string as event handler callback).
(Christian Seiler)
- Fixed bug #45568 (ISAPI doesn't properly clear auth_digest in header).
(Patch by: navara at emclient dot com)
- Fixed bug #45556 (Return value from callback isn't freed). (Felipe)
- Fixed bug #45555 (Segfault with invalid non-string as
register_introspection_callback). (Christian Seiler)
- Fixed bug #45553 (Using XPath to return values for attributes with a
namespace does not work). (Rob)
- Fixed bug #45529 (new DateTimeZone() and date_create()->getTimezone() behave
different). (Derick)
- Fixed bug #45522 (FCGI_GET_VALUES request does not return supplied values).
(Arnaud)
- Fixed bug #45486 (mb_send_mail(); header 'Content-Type: text/plain; charset='
parsing incorrect). (Felipe)
- Fixed bug #45485 (strip_tags and <?XML tag). (Felipe)
- Fixed bug #45460 (imap patch for fromlength fix in imap_headerinfo doesn't
accept lengths of 1024). (Felipe, andrew at lifescale dot com)
- Fixed bug #45449 (filesize() regression using ftp wrapper).
(crrodriguez at suse dot de)
- Fixed bug #45423 (fastcgi parent process doesn't invoke php_module_shutdown
before shutdown) (basant dot kukreja at sun dot com)
- Fixed bug #45406 (session.serialize_handler declared by shared extension fails).
(Kalle, oleg dot grenrus at dynamoid dot com)
- Fixed bug #45405 (snmp extension memory leak).
(Federico Cuello, Rodrigo Campos)
- Fixed bug #45392 (ob_start()/ob_end_clean() and memory_limit). (Arnaud)
- Fixed bug #45382 (timeout bug in stream_socket_enable_crypto). (Ilia)
- Fixed bug #45373 (php crash on query with errors in params). (Felipe)
- Fixed bug #45352 (Segmentation fault because of tick function on second
request). (Dmitry)
- Fixed bug #45312 (Segmentation fault on second request for array functions).
(Dmitry)
- Fixed bug #45303 (Opening php:// wrapper in append mode results in a warning).
(Arnaud)
- Fixed bug #45251 (double free or corruption with setAttributeNode()). (Rob)
- Fixed bug #45226 and #18916 (xmlrpc_set_type() segfaults and wrong behavior
with valid ISO8601 date string). (Jeff Lawsons)
- Fixed bug #45220 (curl_read callback returns -1 when needs to return
size_t (unsigned)). (Felipe)
- Fixed bug #45181 (chdir() should clear relative entries in stat cache).
(Arnaud)
- Fixed bug #45178 (memory corruption on assignment result of "new" by
reference). (Dmitry)
- Fixed bug #45166 (substr() overflow changes). (Felipe)
- Fixed bug #45151 (Crash with URI/file..php (filename contains 2 dots)).
(Fixes CVE-2008-3660) (Dmitry)
- Fixed bug #45139 (ReflectionProperty returns incorrect declaring class).
(Felipe)
- Fixed bug #45124 ($_FILES['upload']['size'] sometimes return zero and some
times the filesize). (Arnaud)
- Fixed bug #45028 (CRC32 output endianness is different between crc32() and
hash()). (Tony)
- Fixed bug #45004 (pg_insert() does not accept 4 digit timezone format).
(Ilia)
- Fixed bug #44991 (Compile Failure With freetds0.82).
(jklowden at freetds dot org, matthias at dsx dot at)
- Fixed bug #44938 (gettext functions crash with overly long domain).
(Christian Schneider, Ilia)
- Fixed bug #44925 (preg_grep() modifies input array). (Nuno)
- Fixed bug #44900 (OpenSSL extension fails to link with OpenSSL 0.9.6).
(jd at cpanel dot net, Pierre)
- Fixed bug #44891 Memory leak using registerPHPFunctions and XSLT Variable
as function parameter. (Rob)
- Fixed bug #44882 (SOAP extension object decoding bug). (Dmitry)
- Fixed bug #44830 (Very minor issue with backslash in heredoc). (Matt)
- Fixed bug #44818 (php://memory writeable when opened read only). (Arnaud)
- Fixed bug #44811 (Improve error message when creating a new SoapClient
that contains invalid data). (Markus Fischer, David C)
- Fixed bug #44798 (Memory leak assigning value to attribute). (Ilia)
- Fixed bug #44716 (Progress notifications incorrect). (Hannes)
- Fixed bug #44712 (stream_context_set_params segfaults on invalid arguments).
(Hannes)
- Fixed bug #44617 (wrong HTML entity output when substitute_character=entity).
(Moriyoshi)
- Fixed bug #44607 (stream_get_line unable to correctly identify the "ending"
in the stream content). (Arnaud)
- Fixed bug #44425 (Extending PDO/MySQL class with a __call() function doesn't
work). (Johannes)
- Fixed bug #44327 (PDORow::queryString property & numeric offsets / Crash).
(Felipe)
- Fixed bug #44251, #41125 (PDO + quote() + prepare() can result in segfault).
(tsteiner at nerdclub dot net)
- Fixed bug #44246 (closedir() accepts a file resource opened by fopen()).
(Dmitry, Tony)
- Fixed bug #44182 (extract($a, EXTR_REFS) can fail to split copy-on-write
references). (robin_fernandes at uk dot ibm dot com)
- Fixed bug #44181 (extract($a, EXTR_OVERWRITE|EXTR_REFS) can fail to create
references to $a). (robin_fernandes at uk dot ibm dot com)
- Fixed bug #44127 (UNIX abstract namespace socket connect does not work).
(Jani)
- Fixed bug #43993 (mb_substr_count() behaves differently to substr_count()
with overlapping needles). (Moriyoshi)
- Fixed Bug #43958 (class name added into the error message). (Dmitry)
- Fixed bug #43941 (json_encode silently cuts non-UTF8 strings). (Stas)
- Fixed bug #43925 (Incorrect argument counter in prepared statements with
pgsql). (Felipe)
- Fixed bug #43731 (socket_getpeername: cannot use on stdin with inetd).
(Arnaud)
- Fixed bug #43723 (SOAP not sent properly from client for <choice>). (Dmitry)
- Fixed bug #43668 (Added odbc.default_cursortype to control the ODBCcursor
model). (Patrick)
- Fixed bug #43666 (Fixed code to use ODBC 3.52 datatypes for 64bit
systems). (Patrick)
- Fixed bug #43540 (rfc1867 handler newlength problem). (Arnaud)
- Fixed bug #43452 (strings containing a weekday, or a number plus weekday
behaved incorrect of the current day-of-week was the same as the one in the
phrase). (Derick)
- Fixed bug #43353 (wrong detection of 'data' wrapper causes notice).
(gk at gknw dot de, Arnaud)
- Fixed bug #43053 (Regression: some numbers shown in scientific notation).
(int-e at gmx dot de)
- Fixed bug #43045 (SOAP encoding violation on "INF" for type double/float).
(Dmitry)
- Fixed bug #42862 (IMAP toolkit crash: rfc822.c legacy routine buffer
overflow). (Fixes CVE-2008-2829) (Dmitry)
- Fixed bug #42855 (dns_get_record() doesn't return all text from TXT record).
(a dot u dot savchuk at gmail dot com)
- Fixed bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines).
(Nuno)
- Fixed bug #42718 (FILTER_UNSAFE_RAW not applied when configured as default
filter). (Arnaud)
- Fixed bug #42604 ("make test" fails with --with-config-file-scan-dir=path).
(Jani)
- Fixed bug #42473 (ob_start php://output and headers). (Arnaud)
- Fixed bug #42318 (problem with nm on AIX, not finding object files).
(Dmitry)
- Fixed bug #42294 (Unified solution for round() based on C99 round). (Ilia)
- Fixed bug #42078 (pg_meta_data mix tables metadata from different schemas).
(Felipe)
- Fixed bug #41348 (OCI8: allow compilation with Oracle 8.1). (Chris Jones)
- Fixed bug #41033 (enable signing with DSA keys.
(gordyf at google dot com, Pierre)
- Fixed bug #37100 (data is returned truncated with BINARY CURSOR). (Tony)
- Fixed bug #30312 (crash in sybase_unbuffered_query() function). (Timm)
- Fixed bug #24679 (pg_* functions doesn't work using schema). (Felipe)
- Fixed bug #14962 (PECL) (::extractTo 2nd argument is not really optional)
(Mark van Der Velden)
- Fixed bug #14032 (Mail() always returns false but mail is sent). (Mikko)
01 May 2008, PHP 5.2.6
- Fixed two possible crashes inside posix extension (Tony)
- Fixed incorrect heredoc handling when label is used within the block.
(Matt)
- Fixed possible stack buffer overflow in FastCGI SAPI. (Andrei Nigmatulin)
- Fixed sending of uninitialized paddings which may contain some information. (Andrei Nigmatulin)
- Fixed a bug in formatting timestamps when DST is active in the default timezone (Derick)
- Properly address incomplete multibyte chars inside escapeshellcmd() (Ilia, Stefan Esser)
- Fix integer overflow in printf(). (Stas, Maksymilian Aciemowicz)
- Fixed security issue detailed in CVE-2008-0599. (Rasmus)
- Fixed potential memleak in stream filter parameter for zlib filter. (Greg)
- Added Reflection API metadata for the methods of the DOM classes. (Sebastian)
@@ -45,155 +416,128 @@ PHP NEWS
which to group by data is specified. (Ilia)
- Fixed segfault in filter extension when using callbacks. (Arnar Mar Sig,
Felipe)
- Fixed faulty fix for bug #40189 (endless loop in zlib.inflate stream filter). (Greg)
- Upgraded PCRE to version 7.6 (Nuno)
- Fixed bug #44742 (timezone_offset_get() causes segmentation faults). (Derick)
- Fixed bug #44720 (Prevent crash within session_register()). (Scott)
- Fixed bug #44703 (htmlspecialchars() does not detect bad character set argument). (Andy Wharmby)
- Fixed bug #44673 (With CGI argv/argc starts from arguments, not from script) (Dmitry)
- Fixed bug #44667 (proc_open() does not handle pipes with the mode 'wb' correctly). (Jani)
- Fixed bug #44663 (Crash in imap_mail_compose if "body" parameter invalid). (Ilia)
- Fixed bug #44650 (escaepshellscmd() does not check arg count). (Ilia)
- Fixed bug #44613 (Crash inside imap_headerinfo()). (Ilia, jmessa)
- Fixed bug #44603 (Order issues with Content-Type/Length headers on POST). (Ilia)
- Fixed bug #44594 (imap_open() does not validate # of retries parameter). (Ilia)
- Fixed bug #44591 (imagegif's filename parameter). (Felipe)
- Fixed bug #44557 (Crash in imap_setacl when supplied integer as username) (Thomas Jarosch)
- Fixed bug #44487 (call_user_method_array issues a warning when throwing an exception). (David Soria Parra)
- Fixed bug #44478 (Inconsistent behaviour when assigning new nodes). (Rob, Felipe)
- Fixed bug #44445 (email validator does not handle domains starting/ending with a -). (Ilia)
- Fixed bug #44440 (st_blocks undefined under BeOS). (Felipe)
- Fixed bug #44394 (Last two bytes missing from output). (Felipe)
- Fixed bug #44388 (Crash inside exif_read_data() on invalid images) (Ilia)
- Fixed bug #44373 (PDO_OCI extension compile failed). (Felipe)
- Fixed bug #44333 (SEGFAULT when using mysql_pconnect() with client_flags). (Felipe)
- Fixed bug #44306 (Better detection of MIPS processors on Windows). (Ilia)
- Fixed bug #44242 (metaphone('CMXFXM') crashes PHP). (Felipe)
- Fixed bug #44233 (MSG_PEEK undefined under BeOS R5). (jonathonfreeman at
gmail dot com, Ilia)
- Fixed bug #44233 (MSG_PEEK undefined under BeOS R5). (jonathonfreeman at gmail dot com, Ilia)
- Fixed bug #44216 (strftime segfaults on large negative value). (Derick)
- Fixed bug #44200 (A crash in PDO when no bound targets exists and yet
bound parameters are present). (Ilia)
- Fixed bug #44209 (strtotime() doesn't support 64 bit timestamps on 64 bit
platforms). (Derick)
- Fixed bug #44206 (OCI8 selecting ref cursors leads to ORA-1000 maximum
open cursors reached). (Oracle Corp.)
- Fixed bug #44209 (strtotime() doesn't support 64 bit timestamps on 64 bit platforms). (Derick)
- Fixed bug #44206 (OCI8 selecting ref cursors leads to ORA-1000 maximum open cursors reached). (Oracle Corp.)
- Fixed bug #44200 (A crash in PDO when no bound targets exists and yet bound parameters are present). (Ilia)
- Fixed bug #44197 (socket array keys lost on socket_select). (Felipe)
- Fixed bug #44191 (preg_grep messes up array index). (Felipe)
- Fixed bug #44189 (PDO setAttribute() does not properly validate values for
native numeric options). (Ilia)
- Fixed bug #44189 (PDO setAttribute() does not properly validate values for native numeric options). (Ilia)
- Fixed bug #44184 (Double free of loop-variable on exception). (Dmitry)
- Fixed bug #44171 (Invalid FETCH_COLUMN index does not raise an error). (Ilia)
- Fixed bug #44159 (Crash: $pdo->setAttribute(PDO::STATEMENT_ATTR_CLASS, NULL)).
(Felipe)
- Fixed bug #44166 (Parameter handling flaw in PDO::getAvailableDrivers()). (Ilia)
- Fixed bug #44159 (Crash: $pdo->setAttribute(PDO::STATEMENT_ATTR_CLASS, NULL)). (Felipe)
- Fixed bug #44152 (Possible crash with syslog logging on ZTS builds). (Ilia)
- Fixed bug #44141 (private parent constructor callable through static
function). (Dmitry)
- Fixed bug #44113 (OCI8 new collection creation can fail with OCI-22303).
(Oracle Corp.)
- Fixed bug #44069 (Huge memory usage with concatenation using . instead of
.=). (Dmitry)
- Fixed bug #44046 (crash inside array_slice() function with an invalid
by-ref offset). (Ilia)
- Fixed bug #44028 (crash inside stream_socket_enable_crypto() when enabling
encryption without crypto type). (Ilia)
- Fixed bug #44141 (private parent constructor callable through static function). (Dmitry)
- Fixed bug #44113 (OCI8 new collection creation can fail with OCI-22303). (Oracle Corp.)
- Fixed bug #44069 (Huge memory usage with concatenation using . instead of .=). (Dmitry)
- Fixed bug #44046 (crash inside array_slice() function with an invalid by-ref offset). (Ilia)
- Fixed bug #44028 (crash inside stream_socket_enable_crypto() when enabling encryption without crypto type). (Ilia)
- Fixed bug #44018 (RecursiveDirectoryIterator options inconsistancy). (Marcus)
- Fixed bug #44008 (OCI8 incorrect usage of OCI-Lob->close crashes PHP).
(Oracle Corp.)
- Fixed bug #43998 (Two error messages returned for incorrect encoding for
mb_strto[upper|lower]). (Rui)
- Fixed bug #44008 (OCI8 incorrect usage of OCI-Lob->close crashes PHP). (Oracle Corp.)
- Fixed bug #43998 (Two error messages returned for incorrect encoding for mb_strto[upper|lower]). (Rui)
- Fixed bug #43994 (mb_ereg 'successfully' matching incorrect). (Rui)
- Fixed bug #43954 (Memory leak when sending the same HTTP status code
multiple times). (Scott)
- Fixed bug #43927 (koi8r is missing from html_entity_decode()).
(andy at demos dot su, Tony)
- Fixed faulty fix for bug #40189 (endless loop in zlib.inflate stream filter).
(Greg)
- Fixed bug #43912 (Interbase column names are truncated to 31 characters).
(Ilia)
- Fixed bug #43875 (Two error messages returned for $new and $flag argument
in mysql_connect()). (Hannes)
- Fixed bug #43863 (str_word_count() breaks on cyrillic "ya" in locale cp1251).
(phprus at gmail dot com, Tony)
- Fixed bug #43954 (Memory leak when sending the same HTTP status code multiple times). (Scott)
- Fixed bug #43927 (koi8r is missing from html_entity_decode()). (andy at demos dot su, Tony)
- Fixed bug #43912 (Interbase column names are truncated to 31 characters). (Ilia)
- Fixed bug #43875 (Two error messages returned for $new and $flag argument in mysql_connect()). (Hannes)
- Fixed bug #43863 (str_word_count() breaks on cyrillic "ya" in locale cp1251). (phprus at gmail dot com, Tony)
- Fixed bug #43841 (mb_strrpos offset is byte count for negative values). (Rui)
- Fixed bug #43840 (mb_strpos bounds check is byte count rather than a character
count). (Rui)
- Fixed bug #43840 (mb_strpos bounds check is byte count rather than a character count). (Rui)
- Fixed bug #43808 (date_create never fails (even when it should)). (Derick)
- Fixed bug #43793 (zlib filter is unable to auto-detect gzip/zlib file headers).
(Greg)
- Fixed bug #43793 (zlib filter is unable to auto-detect gzip/zlib file headers). (Greg)
- Fixed bug #43703 (Signature compatibility check broken). (Dmitry)
- Fixed bug #43663 (Extending PDO class with a __call() function doesn't work).
(David Soria Parra)
- Fixed bug #43677 (Inconsistent behaviour of include_path set with php_value). (manuel at mausz dot at)
- Fixed bug #43663 (Extending PDO class with a __call() function doesn't work). (David Soria Parra)
- Fixed bug #43647 (Make FindFile use PATH_SEPARATOR instead of ";"). (Ilia)
- Fixed bug #43635 (mysql extension ingores INI settings on NULL values
passed to mysql_connect()). (Ilia)
- Fixed bug #43620 (Workaround for a bug inside libcurl 7.16.2 that can result
in a crash). (Ilia)
- Fixed bug #43606 (define missing depencies of the exif extension).
(crrodriguez at suse dot de)
- Fixed bug #43635 (mysql extension ingores INI settings on NULL values passed to mysql_connect()). (Ilia)
- Fixed bug #43620 (Workaround for a bug inside libcurl 7.16.2 that can result in a crash). (Ilia)
- Fixed bug #43614 (incorrect processing of numerical string keys of array in arbitrary serialized data). (Dmitriy Buldakov, Felipe)
- Fixed bug #43606 (define missing depencies of the exif extension). (crrodriguez at suse dot de)
- Fixed bug #43589 (a possible infinite loop in bz2_filter.c). (Greg)
- Fixed bug #43580 (removed bogus declaration of a non-existent php_is_url()
function). (Ilia)
- Fixed bug #43559 (array_merge_recursive() doesn't behave as expected with
duplicate NULL values). (Felipe, Tony)
- Fixed bug #43580 (removed bogus declaration of a non-existent php_is_url() function). (Ilia)
- Fixed bug #43559 (array_merge_recursive() doesn't behave as expected with duplicate NULL values). (Felipe, Tony)
- Fixed bug #43533 (escapeshellarg('') returns null). (Ilia)
- Fixed bug #43527 (DateTime created from a timestamp reports environment
timezone). (Derick)
- Fixed bug #43522 (stream_get_line() eats additional characters). (Felipe,
Ilia, Tony)
- Fixed bug #43507 (SOAPFault HTTP Status 500 - would like to be able to set
the HTTP Status). (Dmitry)
- Fixed bug #43527 (DateTime created from a timestamp reports environment timezone). (Derick)
- Fixed bug #43522 (stream_get_line() eats additional characters). (Felipe, Ilia, Tony)
- Fixed bug #43507 (SOAPFault HTTP Status 500 - would like to be able to set the HTTP Status). (Dmitry)
- Fixed bug #43505 (Assign by reference bug). (Dmitry)
- Fixed bug #43497 (OCI8 XML/getClobVal aka temporary LOBs leak UGA memory).
(Chris)
- Fixed bug #43495 (array_merge_recursive() crashes with recursive arrays).
(Ilia)
- Fixed bug #43498 (file_exists() on a proftpd server got SIZE not
allowed in ASCII mode). (Ilia, crrodriguez at suse dot de)
- Fixed bug #43493 (pdo_pgsql does not send username on connect when password
is not available). (Ilia)
- Fixed bug #43491 (Under certain conditions, file_exists() never returns).
(Dmitry)
- Fixed bug #43483 (get_class_methods() does not list all visible methods).
(Dmitry)
- Fixed bug #43482 (array_pad() does not warn on very small pad numbers).
(Ilia)
- Fixed bug #43457 (Prepared statement with incorrect parms doesn't throw
exception with pdo_pgsql driver). (Ilia)
- Fixed bug #43450 (Memory leak on some functions with implicit object
__toString() call). (David C.)
- Fixed bug #43498 (file_exists() on a proftpd server got SIZE not allowed in ASCII mode). (Ilia, crrodriguez at suse dot de)
- Fixed bug #43497 (OCI8 XML/getClobVal aka temporary LOBs leak UGA memory). (Chris)
- Fixed bug #43495 (array_merge_recursive() crashes with recursive arrays). (Ilia)
- Fixed bug #43493 (pdo_pgsql does not send username on connect when password is not available). (Ilia)
- Fixed bug #43491 (Under certain conditions, file_exists() never returns). (Dmitry)
- Fixed bug #43483 (get_class_methods() does not list all visible methods). (Dmitry)
- Fixed bug #43482 (array_pad() does not warn on very small pad numbers). (Ilia)
- Fixed bug #43457 (Prepared statement with incorrect parms doesn't throw exception with pdo_pgsql driver). (Ilia)
- Fixed bug #43450 (Memory leak on some functions with implicit object __toString() call). (David C.)
- Fixed bug #43386 (array_globals not reset to 0 properly on init). (Ilia)
- Fixed bug #43377 (PHP crashes with invalid argument for DateTimeZone). (Ilia)
- Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error). (Ilia)
- Fixed bug #43364 (recursive xincludes don't remove internal xml nodes
properly). (Rob, patch from ddb@bitxtender.de)
- Fixed bug #43092 (curl_copy_handle() crashes with > 32 chars long URL).
(Jani)
- Fixed bug #43301 (mb_ereg*_replace() crashes when replacement string is
invalid PHP expression and 'e' option is used). (Jani)
- Fixed bug #43003 (Invalid timezone reported for DateTime objects constructed
using a timestamp). (Derick)
- Fixed bug #43295 (crash because of uninitialized SG(sapi_headers).mimetype).
(Dmitry)
- Fixed bug #43364 (recursive xincludes don't remove internal xml nodes properly). (Rob, patch from ddb@bitxtender.de)
- Fixed bug #43301 (mb_ereg*_replace() crashes when replacement string is invalid PHP expression and 'e' option is used). (Jani)
- Fixed bug #43295 (crash because of uninitialized SG(sapi_headers).mimetype). (Dmitry)
- Fixed bug #43293 (Multiple segfaults in getopt()). (Hannes)
- Fixed bug #43279 (pg_send_query_params() converts all elements in 'params'
to strings). (Ilia)
- Fixed bug #43276 (Incomplete fix for bug #42739, mkdir() under safe_mode).
(Ilia)
- Fixed bug #43279 (pg_send_query_params() converts all elements in 'params' to strings). (Ilia)
- Fixed bug #43276 (Incomplete fix for bug #42739, mkdir() under safe_mode). (Ilia)
- Fixed bug #43248 (backward compatibility break in realpath()). (Dmitry)
- Fixed bug #43221 (SimpleXML adding default namespace in addAttribute). (Rob)
- Fixed bug #43216 (stream_is_local() returns false on "file://"). (Dmitry)
- Fixed bug #43201 (Crash on using uninitialized vals and __get/__set). (Dmitry)
- Fixed bug #43182 (file_put_contents() LOCK_EX does not work properly on file
truncation). (Ilia)
- Fixed bug #43175 (__destruct() throwing an exception with __call() causes
segfault). (Dmitry)
- Fixed bug #43182 (file_put_contents() LOCK_EX does not work properly on file truncation). (Ilia)
- Fixed bug #43175 (__destruct() throwing an exception with __call() causes segfault). (Dmitry)
- Fixed bug #43128 (Very long class name causes segfault). (Dmitry)
- Fixed bug #43105 (PHP seems to fail to close open files). (Hannes)
- Fixed bug #42978 (mismatch between number of bound params and values causes
a crash in pdo_pgsql). (Ilia)
- Fixed bug #43092 (curl_copy_handle() crashes with > 32 chars long URL). (Jani)
- Fixed bug #43003 (Invalid timezone reported for DateTime objects constructed using a timestamp). (Derick)
- Fixed bug #42978 (mismatch between number of bound params and values causes a crash in pdo_pgsql). (Ilia)
- Fixed bug #42945 (preg_split() swallows part of the string). (Nuno)
- Fixed bug #42937 (__call() method not invoked when methods are called on
parent from child class). (Dmitry)
- Fixed bug #42937 (__call() method not invoked when methods are called on parent from child class). (Dmitry)
- Fixed bug #42841 (REF CURSOR and oci_new_cursor() crash PHP). (Chris)
- Fixed Bug #42838 (Wrong results in array_diff_uassoc) (Felipe)
- Fixed bug #42779 (Incorrect forcing from HTTP/1.0 request to HTTP/1.1
response). (Ilia)
- Fixed bug #42838 (Wrong results in array_diff_uassoc) (Felipe)
- Fixed bug #42779 (Incorrect forcing from HTTP/1.0 request to HTTP/1.1 response). (Ilia)
- Fixed bug #42736 (xmlrpc_server_call_method() crashes). (Tony)
- Fixed bug #42692 (Procedure 'int1' not present with doc/lit SoapServer).
(Dmitry)
- Fixed bug #42692 (Procedure 'int1' not present with doc/lit SoapServer). (Dmitry)
- Fixed bug #42548 (mysqli PROCEDURE calls can't return result sets). (Hartmut)
- Fixed bug #42369 (Implicit conversion to string leaks memory).
(David C., Rob).
- Fixed bug #42505 (new sendmail default breaks on Netware platform) (Guenter Knauf)
- Fixed bug #42369 (Implicit conversion to string leaks memory). (David C., Rob).
- Fixed bug #42272 (var_export() incorrectly escapes char(0)). (Derick)
- Fixed bug #42261 (Incorrect lengths for date and boolean data types).
(Ilia)
- Fixed bug #42190 (Constructing DateTime with TimeZone Indicator invalidates
DateTimeZone). (Derick)
- Fixed bug #42261 (Incorrect lengths for date and boolean data types). (Ilia)
- Fixed bug #42190 (Constructing DateTime with TimeZone Indicator invalidates DateTimeZone). (Derick)
- Fixed bug #42177 (Warning "array_merge_recursive(): recursion detected" comes again...). (Felipe)
- Fixed bug #41941 (oci8 extension not lib64 savvy). (Chris)
- Fixed bug #41828 (Failing to call RecursiveIteratorIterator::__construct() causes a sefault). (Etienne)
- Fixed bug #41599 (setTime() fails after modify() is used). (Derick)
- Fixed bug #41562 (SimpleXML memory issue). (Rob)
- Fixed bug #40013 (php_uname() does not return nodename on Netware (Guenter Knauf)
- Fixed bug #38468 (Unexpected creation of cycle). (Dmitry)
- Fixed bug #32979 (OpenSSL stream->fd casts broken in 64-bit build) (stotty at tvnet dot hu)
08 Nov 2007, PHP 5.2.5
- Upgraded PCRE to version 7.3 (Nuno)
+14 -14
View File
@@ -1,11 +1,11 @@
[IMPORTANT NOTICE]
------------------
This is an addendum to README.TESTING with additional information
specific to run-tests2.php.
specific to server-tests.php.
run-tests2.php is backward compatible with tests developed for
the original run-tests.php script. run-tests2 is *not* used by
'make test'. run-tests2 was developed to provide support for
server-tests.php is backward compatible with tests developed for
the original run-tests.php script. server-tests is *not* used by
'make test'. server-tests was developed to provide support for
testing PHP under it's primary environment, HTTP, and can run the
PHP tests under any of the SAPI modules that are direct executables,
or are accessable via HTTP.
@@ -13,12 +13,12 @@ or are accessable via HTTP.
[New features]
----------------
* Command line interface:
You can run 'php run-tests2.php -h' to get all the possible options.
You can run 'php server-tests.php -h' to get all the possible options.
* Configuration file:
the -c argument will allow you to use a configuration file. This is
handy if you are testing multiple environments and need various options
depending on the environment.
see run-tests-config.php for details.
see server-tests-config.php for details.
* CGI Emulation:
Will emulate a CGI environment when testing with the cgi sapi executable.
* HTTP testing:
@@ -39,23 +39,23 @@ make testing work.
Some (but not all!) examples of usage:
1. run tests from the php source directory
php run-tests2.php -p /path/to/php-cli
php server-tests.php -p /path/to/php-cli
2. run tests using cgi emulation
php run-tests2.php -p /path/to/php-cgi
php server-tests.php -p /path/to/php-cgi
3. run tests over http, copying test files into document root
php run-tests2.php -w -u http://localhost/test -m /path/to/htdocs/test
php server-tests.php -w -u http://localhost/test -m /path/to/htdocs/test
4. run tests over http, php sources have been aliased in web server
php run-tests2.php -w -u http://localhost/test
php server-tests.php -w -u http://localhost/test
5. run tests using configuration file
php run-tests2.php -c /path/to/run-tests-config.php
php server-tests.php -c /path/to/server-tests-config.php
6. run tests using configuration file, but overriding some settings:
(config file must be first)
php run-tests2.php -c /path/to/run-tests-config.php -w -t 3 -d /path/to/testdir
php server-tests.php -c /path/to/server-tests-config.php -w -t 3 -d /path/to/testdir
NOTE: configuration as described in README.TESTING still works.
@@ -63,7 +63,7 @@ NOTE: configuration as described in README.TESTING still works.
----------------
In addition to the traditional test sections
(see http://qa.php.net/write-test.php), several new sections are available
under run-tests2.
under server-tests.
--POST--
This is not a new section, but not multipart posts are supported for testing
@@ -97,7 +97,7 @@ include:
$scriptname this is what will become SCRIPT_NAME unless you override it
$docroot the equivelant of DOCUMENT_ROOT under Apache
$cwd the directory that the test is being initiated from
$this->conf all run-tests2 configuration vars
$this->conf all server-tests configuration vars
$this->env all environment variables that will get passed to the test
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Thread Safe Resource Manager |
+----------------------------------------------------------------------+
| Copyright (c) 1999-2008, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| Copyright (c) 1999-2009, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| This source file is subject to the TSRM license, that is bundled |
| with this package in the file LICENSE |
+----------------------------------------------------------------------+
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Thread Safe Resource Manager |
+----------------------------------------------------------------------+
| Copyright (c) 1999-2008, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| Copyright (c) 1999-2009, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| This source file is subject to the TSRM license, that is bundled |
| with this package in the file LICENSE |
+----------------------------------------------------------------------+
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2008 The PHP Group |
| Copyright (c) 1997-2009 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2008 The PHP Group |
| Copyright (c) 1997-2009 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+9 -4
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2008 The PHP Group |
| Copyright (c) 1997-2009 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -491,6 +491,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
int use_relative_path = 0;
#ifdef TSRM_WIN32
int is_unc;
int exists;
#endif
TSRMLS_FETCH();
@@ -589,6 +590,7 @@ no_realpath:
CWD_STATE_COPY(&old_state, state);
#ifdef TSRM_WIN32
exists = (use_realpath != CWD_EXPAND);
ret = 0;
is_unc = 0;
if (path_length >= 2 && path[1] == ':') {
@@ -696,13 +698,16 @@ no_realpath:
ptr_length = length;
FindClose(hFind);
ret = 0;
} else if (use_realpath == CWD_REALPATH) {
} else {
if (is_unc) {
/* skip share name */
is_unc--;
ret = 0;
} else {
ret = 1;
exists = 0;
if (use_realpath == CWD_REALPATH) {
ret = 1;
}
}
}
}
@@ -742,7 +747,7 @@ no_realpath:
/* Store existent file in realpath cache. */
#ifdef TSRM_WIN32
if (use_cache && !is_unc) {
if (use_cache && !is_unc && exists) {
#else
if (use_cache && (use_realpath == CWD_REALPATH)) {
#endif
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2008 The PHP Group |
| Copyright (c) 1997-2009 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+11 -11
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2008 The PHP Group |
| Copyright (c) 1997-2009 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -88,7 +88,7 @@ TSRM_API int tsrm_win32_access(const char *pathname, int mode)
{
if (mode == 1 /*X_OK*/) {
#if 1
/* This code is not supported by Windows 98,
/* This code is not supported by Windows 98,
* but we don't support it anymore */
DWORD type;
@@ -96,7 +96,7 @@ TSRM_API int tsrm_win32_access(const char *pathname, int mode)
#else
SHFILEINFO sfi;
return access(pathname, 0) == 0 &&
return access(pathname, 0) == 0 &&
SHGetFileInfo(pathname, 0, &sfi, sizeof(SHFILEINFO), SHGFI_EXETYPE) != 0 ? 0 : -1;
#endif
} else {
@@ -109,22 +109,22 @@ static process_pair *process_get(FILE *stream TSRMLS_DC)
{
process_pair *ptr;
process_pair *newptr;
for (ptr = TWG(process); ptr < (TWG(process) + TWG(process_size)); ptr++) {
if (ptr->stream == stream) {
break;
}
}
if (ptr < (TWG(process) + TWG(process_size))) {
return ptr;
}
newptr = (process_pair*)realloc((void*)TWG(process), (TWG(process_size)+1)*sizeof(process_pair));
if (newptr == NULL) {
return NULL;
}
TWG(process) = newptr;
ptr = newptr + TWG(process_size);
TWG(process_size)++;
@@ -136,7 +136,7 @@ static shm_pair *shm_get(int key, void *addr)
shm_pair *ptr;
shm_pair *newptr;
TSRMLS_FETCH();
for (ptr = TWG(shm); ptr < (TWG(shm) + TWG(shm_size)); ptr++) {
if (!ptr->descriptor) {
continue;
@@ -151,12 +151,12 @@ static shm_pair *shm_get(int key, void *addr)
if (ptr < (TWG(shm) + TWG(shm_size))) {
return ptr;
}
newptr = (shm_pair*)realloc((void*)TWG(shm), (TWG(shm_size)+1)*sizeof(shm_pair));
if (newptr == NULL) {
return NULL;
}
TWG(shm) = newptr;
ptr = newptr + TWG(shm_size);
TWG(shm_size)++;
@@ -195,7 +195,7 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
if (!str_len || !CreatePipe(&in, &out, &security, 2048L)) {
return NULL;
}
memset(&startup, 0, sizeof(STARTUPINFO));
memset(&process, 0, sizeof(PROCESS_INFORMATION));
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2008 The PHP Group |
| Copyright (c) 1997-2009 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -4,7 +4,7 @@ dnl This file contains local autoconf functions.
AC_DEFUN([LIBZEND_BISON_CHECK],[
# we only support certain bison versions
bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3"
bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4"
# for standalone build of Zend Engine
test -z "$SED" && SED=sed
+6 -6
View File
@@ -23,18 +23,18 @@ var_dump(constant("test const"));
echo "Done\n";
?>
--EXPECTF--
Warning: Wrong parameter count for define() in %s on line %d
Warning: define() expects at least 2 parameters, 0 given in %s on line %d
NULL
Warning: Wrong parameter count for define() in %s on line %d
Warning: define() expects at least 2 parameters, 1 given in %s on line %d
NULL
bool(true)
Notice: Constant true already defined in %s on line %d
bool(false)
Warning: define() expects parameter 3 to be boolean, array given in %s on line %d
NULL
Notice: Array to string conversion in %s on line %d
bool(true)
Warning: define() expects parameter 1 to be string, array given in %s on line %d
NULL
bool(true)
bool(true)
bool(true)
+39
View File
@@ -0,0 +1,39 @@
--TEST--
__call() for private/protected methods
--FILE--
<?php
class A {
private $var1 = 'var1 value';
protected $var2 = 'var2 value';
private function func1()
{
return "in func1";
}
protected function func2()
{
return "in func2";
}
public function __get($var)
{
return $this->$var;
}
public function __call($func, array $args = array())
{
return call_user_func_array(array($this, $func), $args);
}
}
$a = new A();
echo $a->var1,"\n";
echo $a->var2,"\n";
echo $a->func1(),"\n";
echo $a->func2(),"\n";
?>
--EXPECTF--
var1 value
var2 value
in func1
in func2
+21
View File
@@ -0,0 +1,21 @@
--TEST--
Trigger __call() in lieu of non visible methods when called via a callback.
--FILE--
<?php
class C {
protected function prot() { }
private function priv() { }
public function __call($name, $args) {
echo "In __call() for method $name()\n";
}
}
$c = new C;
call_user_func(array($c, 'none'));
call_user_func(array($c, 'prot'));
call_user_func(array($c, 'priv'));
?>
--EXPECTF--
In __call() for method none()
In __call() for method prot()
In __call() for method priv()
+27 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #38469 Unexpected creation of cycle
Bug #38469 (Unexpected creation of cycle)
--FILE--
<?php
$a = array();
@@ -8,6 +8,16 @@ var_dump($a);
$b = array(array());
$b[0][0] = $b;
var_dump($b);
function f() {
$a = array();
$a[0] = $a;
var_dump($a);
$b = array(array());
$b[0][0] = $b;
var_dump($b);
}
f();
?>
--EXPECT--
array(1) {
@@ -26,3 +36,19 @@ array(1) {
}
}
}
array(1) {
[0]=>
array(0) {
}
}
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(0) {
}
}
}
}
+1 -1
View File
@@ -8,7 +8,7 @@ if (extension_loaded("readline")) die("skip Test doesn't support readline");
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE');
$cmd = "$php -d memory_limit=4M -a ".dirname(__FILE__)."/bug40236.inc";
$cmd = "\"$php\" -n -d memory_limit=4M -a \"".dirname(__FILE__)."\"/bug40236.inc";
echo `$cmd`;
?>
--EXPECTF--
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #41372 Internal pointer of source array resets during array copying
Bug #41372 (Internal pointer of source array resets during array copying)
--FILE--
<?php
$Foo = array('val1', 'val2', 'val3');
+1 -1
View File
@@ -8,4 +8,4 @@ $foo[3]->bar[1] = "bang";
echo "ok\n";
?>
--EXPECTF--
Fatal error: Cannot use string offset as an object in %s/bug41919.php on line %d
Fatal error: Cannot use string offset as an object in %sbug41919.php on line %d
+14
View File
@@ -0,0 +1,14 @@
--TEST--
Bug #43053 (Regression: some numbers shown in scientific notation)
--FILE--
<?php
echo 1200000.00."\n";
echo 1300000.00."\n";
echo 1400000.00."\n";
echo 1500000.00."\n";
?>
--EXPECT--
1200000
1300000
1400000
1500000
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #43128 Very long class name causes segfault
Bug #43128 (Very long class name causes segfault)
--FILE--
<?php
+14
View File
@@ -0,0 +1,14 @@
--TEST--
Bug #44830 (Very minor issue with backslash in heredoc)
--FILE--
<?php
$backslash = <<<EOT
\
EOT;
var_dump($backslash);
?>
--EXPECT--
string(1) "\"
+29
View File
@@ -0,0 +1,29 @@
--TEST--
Bug #45178 memory corruption on assignment result of "new" by reference
--FILE--
<?php
class Foo {
function __construct() {
$this->error = array($this,$this);
}
}
$a =& new Foo();
class Bar {
function __construct() {
$this->_rme2 = $this;
}
}
$b =& new Bar();
$b->_rme2 = 0;
var_dump($b);
?>
--EXPECTF--
Strict Standards: Assigning the return value of new by reference is deprecated in %sbug45178.php on line 7
Strict Standards: Assigning the return value of new by reference is deprecated in %sbug45178.php on line 15
object(Bar)#%d (1) {
["_rme2"]=>
int(0)
}
+48
View File
@@ -0,0 +1,48 @@
--TEST--
Bug #45805 (Crash on throwing exception from error handler)
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--FILE--
<?php
class PHPUnit_Util_ErrorHandler
{
public static function handleError($errno, $errstr, $errfile, $errline)
{
throw new RuntimeException;
}
}
class A {
public function getX() {
return NULL;
}
}
class B {
public function foo() {
$obj = new A;
$source = &$obj->getX();
}
public function bar() {
$m = new ReflectionMethod('B', 'foo');
$m->invoke($this);
}
}
set_error_handler(
array('PHPUnit_Util_ErrorHandler', 'handleError'), E_ALL | E_STRICT
);
$o = new B;
$o->bar();
?>
--EXPECTF--
Fatal error: Uncaught exception 'RuntimeException' in %sbug45805.php:%d
Stack trace:
#0 %sbug45805.php(%d): PHPUnit_Util_ErrorHandler::handleError(2048, 'Only variables ...', '%s', %d, Array)
#1 [internal function]: B->foo()
#2 %sbug45805.php(%d): ReflectionMethod->invoke(Object(B))
#3 %sbug45805.php(%d): B->bar()
#4 {main}
thrown in %sbug45805.php on line %d
+43
View File
@@ -0,0 +1,43 @@
--TEST--
Bug #45862 (get_class_vars is inconsistent with 'protected' and 'private' variables)
--FILE--
<?php
class Ancestor {
function test() {
var_dump(get_class_vars("Tester"));
var_dump(Tester::$prot);
}
}
class Tester extends Ancestor {
static protected $prot = "protected var";
static private $priv = "private var";
}
class Child extends Tester {
function test() { var_dump(get_class_vars("Tester")); }
}
echo "\n From parent scope\n";
$parent = new Ancestor();
$parent->test();
echo "\n From child scope\n";
$child = new Child();
$child->test();
?>
--EXPECT--
From parent scope
array(1) {
["prot"]=>
string(13) "protected var"
}
string(13) "protected var"
From child scope
array(1) {
["prot"]=>
string(13) "protected var"
}
+40
View File
@@ -0,0 +1,40 @@
--TEST--
Bug #46246 (difference between call_user_func(array($this, $method)) and $this->$method())
--FILE--
<?php
class A
{
private function Test()
{
echo 'Hello from '.get_class($this)."\n";
}
public function call($method, $args = array())
{
$this->Test();
$this->$method();
call_user_func(array($this, $method));
}
}
class B extends A
{
protected function Test()
{
echo 'Overridden hello from '.get_class($this)."\n";
}
}
$a = new A;
$b = new B;
$a->call('Test');
$b->call('Test');
?>
--EXPECT--
Hello from A
Hello from A
Hello from A
Hello from B
Hello from B
Hello from B
+33
View File
@@ -0,0 +1,33 @@
--TEST--
Bug #46308 (Invalid write when changing property from inside getter)
--FILE--
<?php
class main
{
public static $dummy = NULL ;
public static $dataAccessor = NULL ;
}
class dataAccessor
{
}
class relay
{
public function __get( $name )
{
main::$dataAccessor = new dataAccessor;
}
}
class dummy
{
}
main::$dummy = new dummy();
main::$dataAccessor = new relay();
main::$dataAccessor->bar;
echo "ok\n";
?>
--EXPECT--
ok
+19
View File
@@ -0,0 +1,19 @@
--TEST--
Bug #46381 (wrong $this passed to internal methods causes segfault)
--SKIPIF--
<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
--FILE--
<?php
class test {
public function test() {
return ArrayIterator::current();
}
}
$test = new test();
$test->test();
echo "Done\n";
?>
--EXPECTF--
Fatal error: Non-static method ArrayIterator::current() cannot be called statically, assuming $this from incompatible context in %s on line %d
+42
View File
@@ -0,0 +1,42 @@
--TEST--
Bug #46701 (Creating associative array with long values in the key fails on 32bit linux)
--SKIPIF--
<?php if (PHP_INT_MAX != 4) die('skip this test is for 32bit platforms only'); ?>
--FILE--
<?php
$test_array = array(
0xcc5c4600 => 1,
0xce331a00 => 2
);
$test_array[0xce359000] = 3;
var_dump($test_array);
var_dump($test_array[0xce331a00]);
class foo {
public $x;
public function __construct() {
$this->x[0xce359000] = 3;
var_dump($this->x);
}
}
new foo;
?>
--EXPECT--
array(3) {
[-866368000]=>
int(1)
[-835511808]=>
int(2)
[-835350528]=>
int(3)
}
int(2)
array(1) {
[-835350528]=>
int(3)
}
+11
View File
@@ -0,0 +1,11 @@
--TEST--
Bug #47109 (Memory leak on $a->{"a"."b"} when $a is not an object)
--FILE--
<?php
$a->{"a"."b"};
?>
--EXPECTF--
Notice: Undefined variable: a in %sbug47109.php on line 2
Notice: Trying to get property of non-object in %sbug47109.php on line 2
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #47165 (Possible memory corruption when passing return value by reference)
--FILE--
<?php
class Foo {
var $bar = array();
static function bar() {
static $instance = null;
$instance = new Foo();
return $instance->bar;
}
}
extract(Foo::bar());
echo "ok\n";
?>
--EXPECT--
ok
+26
View File
@@ -0,0 +1,26 @@
--TEST--
Bug #47353 (crash when creating a lot of objects in object destructor)
--FILE--
<?php
class A
{
function __destruct()
{
$myArray = array();
for($i = 1; $i <= 3000; $i++) {
if(!isset($myArray[$i]))
$myArray[$i] = array();
$ref = & $myArray[$i];
$ref[] = new stdClass();
}
}
}
$a = new A();
echo "Done\n";
?>
--EXPECTF--
Done
+16
View File
@@ -0,0 +1,16 @@
--TEST--
Testing declare statement with several type values
--FILE--
<?php
declare(encoding = 1);
declare(encoding = 1123131232131312321);
declare(encoding = NULL);
declare(encoding = M_PI);
declare(encoding = 'utf-8');
print 'DONE';
?>
--EXPECT--
DONE
+28
View File
@@ -0,0 +1,28 @@
--TEST--
Testing exception properties
--FILE--
<?php
class my_file
{
public function __toString()
{
return "somebuildfilename" ;
}
}
class my_exception extends exception
{
public function __construct()
{
$this->message = new stdclass ;
$this->file = new my_file ;
$this->line = "12" ;
}
}
throw new my_exception;
?>
--EXPECT--
Catchable fatal error: Object of class stdClass could not be converted to string in Unknown on line 0
+55
View File
@@ -0,0 +1,55 @@
--TEST--
get_class_methods(): Testing scope
--FILE--
<?php
abstract class A {
public function a() { }
private function b() { }
protected function c() { }
}
class B extends A {
private function bb() { }
static public function test() {
var_dump(get_class_methods('A'));
var_dump(get_class_methods('B'));
}
}
var_dump(get_class_methods('A'));
var_dump(get_class_methods('B'));
B::test();
?>
--EXPECT--
array(1) {
[0]=>
string(1) "a"
}
array(2) {
[0]=>
string(4) "test"
[1]=>
string(1) "a"
}
array(2) {
[0]=>
string(1) "a"
[1]=>
string(1) "c"
}
array(4) {
[0]=>
string(2) "bb"
[1]=>
string(4) "test"
[2]=>
string(1) "a"
[3]=>
string(1) "c"
}
+43
View File
@@ -0,0 +1,43 @@
--TEST--
get_class_methods(): Testing with interface
--FILE--
<?php
interface A {
function a();
function b();
}
class B implements A {
public function a() { }
public function b() { }
public function __construct() {
var_dump(get_class_methods('A'));
var_dump(get_class_methods('B'));
}
public function __destruct() { }
}
new B;
?>
--EXPECTF--
Strict Standards: Redefining already defined constructor for class B in %s on line %d
array(2) {
[0]=>
string(1) "a"
[1]=>
string(1) "b"
}
array(4) {
[0]=>
string(1) "a"
[1]=>
string(1) "b"
[2]=>
string(11) "__construct"
[3]=>
string(10) "__destruct"
}
+78
View File
@@ -0,0 +1,78 @@
--TEST--
get_class_methods(): Testing scope
--FILE--
<?php
interface A {
function aa();
function bb();
static function cc();
}
class C {
public function a() { }
protected function b() { }
private function c() { }
static public function static_a() { }
static protected function static_b() { }
static private function static_c() { }
}
class B extends C implements A {
public function aa() { }
public function bb() { }
static function cc() { }
public function __construct() {
var_dump(get_class_methods('A'));
var_dump(get_class_methods('B'));
var_dump(get_class_methods('C'));
}
public function __destruct() { }
}
new B;
?>
--EXPECT--
array(3) {
[0]=>
string(2) "aa"
[1]=>
string(2) "bb"
[2]=>
string(2) "cc"
}
array(9) {
[0]=>
string(2) "aa"
[1]=>
string(2) "bb"
[2]=>
string(2) "cc"
[3]=>
string(11) "__construct"
[4]=>
string(10) "__destruct"
[5]=>
string(1) "a"
[6]=>
string(1) "b"
[7]=>
string(8) "static_a"
[8]=>
string(8) "static_b"
}
array(4) {
[0]=>
string(1) "a"
[1]=>
string(1) "b"
[2]=>
string(8) "static_a"
[3]=>
string(8) "static_b"
}
+33
View File
@@ -0,0 +1,33 @@
--TEST--
get_class_vars(): Simple test
--FILE--
<?php
class A {
public $a = 1;
private $b = 2;
private $c = 3;
}
class B extends A {
static public $aa = 4;
static private $bb = 5;
static protected $cc = 6;
}
var_dump(get_class_vars('A'));
var_dump(get_class_vars('B'));
?>
--EXPECT--
array(1) {
["a"]=>
int(1)
}
array(2) {
["a"]=>
int(1)
["aa"]=>
int(4)
}
+49
View File
@@ -0,0 +1,49 @@
--TEST--
get_class_vars(): Testing the scope
--FILE--
<?php
class A {
public $a = 1;
private $b = 2;
private $c = 3;
}
class B extends A {
static public $aa = 4;
static private $bb = 5;
static protected $cc = 6;
}
class C extends B {
public function __construct() {
var_dump(get_class_vars('A'));
var_dump(get_class_vars('B'));
var_dump($this->a, $this->b, $this->c);
}
}
new C;
?>
--EXPECTF--
array(1) {
["a"]=>
int(1)
}
array(3) {
["a"]=>
int(1)
["aa"]=>
int(4)
["cc"]=>
int(6)
}
Notice: Undefined property: C::$b in %s on line %d
Notice: Undefined property: C::$c in %s on line %d
int(1)
NULL
NULL
+47
View File
@@ -0,0 +1,47 @@
--TEST--
get_class_vars(): Testing the scope
--FILE--
<?php
class A {
public $a = 1;
private $b = 2;
private $c = 3;
}
class B extends A {
static public $aa = 4;
static private $bb = 5;
static protected $cc = 6;
protected function __construct() {
var_dump(get_class_vars('C'));
}
}
class C extends B {
public $aaa = 7;
private $bbb = 8;
protected $ccc = 9;
public function __construct() {
parent::__construct();
}
}
new C;
?>
--EXPECT--
array(5) {
["aaa"]=>
int(7)
["ccc"]=>
int(9)
["a"]=>
int(1)
["aa"]=>
int(4)
["cc"]=>
int(6)
}
+67
View File
@@ -0,0 +1,67 @@
--TEST--
get_class_vars(): Testing the scope
--FILE--
<?php
class A {
public $a = 1;
static public $A = 2;
private $b = 3;
static private $B = 4;
protected $c = 5;
static protected $C = 6;
public function __construct() {
var_dump(get_class_vars('A'));
}
static public function test() {
var_dump(get_class_vars('A'));
}
}
var_dump(get_class_vars('A'));
new A;
var_dump(A::test());
?>
--EXPECT--
array(2) {
["a"]=>
int(1)
["A"]=>
int(2)
}
array(6) {
["a"]=>
int(1)
["b"]=>
int(3)
["c"]=>
int(5)
["A"]=>
int(2)
["B"]=>
int(4)
["C"]=>
int(6)
}
array(6) {
["a"]=>
int(1)
["b"]=>
int(3)
["c"]=>
int(5)
["A"]=>
int(2)
["B"]=>
int(4)
["C"]=>
int(6)
}
NULL
+39
View File
@@ -0,0 +1,39 @@
--TEST--
get_class_vars(): Testing visibility
--FILE--
<?php
class A {
protected $a = 1;
private $b = 2;
}
class B extends A {
private $c = 3;
public function __construct() {
var_dump(get_class_vars('A'));
var_dump(get_class_vars('B'));
}
}
var_dump(get_class_vars('A'));
var_dump(get_class_vars('B'));
new B;
?>
--EXPECT--
array(0) {
}
array(0) {
}
array(1) {
["a"]=>
int(1)
}
array(2) {
["c"]=>
int(3)
["a"]=>
int(1)
}
+48
View File
@@ -0,0 +1,48 @@
--TEST--
get_class_vars(): Testing visibility
--FILE--
<?php
class A {
protected $a = 1;
}
class B extends A { }
class C extends B { }
var_dump(get_class_vars('A'));
var_dump(get_class_vars('B'));
var_dump(get_class_vars('C'));
print "---\n";
class D extends B {
public function __construct() {
var_dump(get_class_vars('A'));
var_dump(get_class_vars('B'));
var_dump(get_class_vars('C'));
}
}
new D;
?>
--EXPECT--
array(0) {
}
array(0) {
}
array(0) {
}
---
array(1) {
["a"]=>
int(1)
}
array(1) {
["a"]=>
int(1)
}
array(0) {
}
+41
View File
@@ -0,0 +1,41 @@
--TEST--
get_class_vars(): Testing with static properties
--FILE--
<?php
class A {
static public $a, $aa;
static private $b, $bb;
static protected $c, $cc;
static public function test() {
var_dump(get_class_vars(__CLASS__));
}
}
var_dump(get_class_vars('A'));
var_dump(A::test());
?>
--EXPECT--
array(2) {
["a"]=>
NULL
["aa"]=>
NULL
}
array(6) {
["a"]=>
NULL
["aa"]=>
NULL
["b"]=>
NULL
["bb"]=>
NULL
["c"]=>
NULL
["cc"]=>
NULL
}
NULL
+1 -1
View File
@@ -22,7 +22,7 @@ foreach ($doubles as $d) {
echo "Done\n";
?>
--EXPECTF--
float(4083360297110%d)
float(4.0833602971%dE+14)
float(4.7223664828%dE+21)
float(1.3521606402%dE+31)
float(1.9807040628%dE+27)
+32
View File
@@ -0,0 +1,32 @@
--TEST--
Testing isset and unset with variable variables
--FILE--
<?php
print "- isset ---\n";
$var_name = 'unexisting';
if (isset($$var_name)) {
print "error\n";
}
$test = 'var_name';
if (isset($$$test)) {
print "error\n";
}
print "- unset ---\n";
unset($$var_name);
unset($$$test);
print "done\n";
?>
--EXPECT--
- isset ---
- unset ---
done
+10
View File
@@ -0,0 +1,10 @@
--TEST--
Testing isset with several undefined variables as argument
--FILE--
<?php
var_dump(isset($a, ${$b}, $$c, $$$$d, $e[$f->g]->d));
?>
--EXPECT--
bool(false)
+40
View File
@@ -0,0 +1,40 @@
--TEST--
Testing isset accessing undefined array itens and properties
--FILE--
<?php
$a = 'foo';
$b =& $a;
var_dump(isset($b));
var_dump(isset($a[0], $b[1]));
var_dump(isset($a[0]->a));
var_dump(isset($c[0][1][2]->a->b->c->d));
var_dump(isset(${$a}->{$b->$c[$d]}));
var_dump(isset($GLOBALS));
var_dump(isset($GLOBALS[1]));
var_dump(isset($GLOBALS[1]->$GLOBALS));
?>
--EXPECTF--
bool(true)
bool(true)
bool(false)
bool(false)
Notice: Undefined variable: d in %s on line %d
Notice: Undefined variable: c in %s on line %d
Notice: Trying to get property of non-object in %s on line %d
bool(false)
bool(true)
bool(false)
bool(false)
+74
View File
@@ -0,0 +1,74 @@
--TEST--
Testing method_exists()
--FILE--
<?php
class bar {
static public function stat_a2() {
}
static private function stat_b2() {
}
static protected function stat_c2() {
}
private function method_a() {
}
protected function method_b() {
}
public function method_c() {
}
}
class baz extends bar {
static public function stat_a() {
}
static private function stat_b() {
}
static protected function stat_c() {
}
private function method_a() {
}
protected function method_b() {
}
public function method_c() {
}
}
var_dump(method_exists('baz', 'stat_a'));
var_dump(method_exists('baz', 'stat_b'));
var_dump(method_exists('baz', 'stat_c'));
print "----\n";
var_dump(method_exists('baz', 'stat_a2'));
var_dump(method_exists('baz', 'stat_b2'));
var_dump(method_exists('baz', 'stat_c2'));
print "----\n";
$baz = new baz;
var_dump(method_exists($baz, 'method_a'));
var_dump(method_exists($baz, 'method_b'));
var_dump(method_exists($baz, 'method_c'));
print "----\n";
var_dump(method_exists($baz, 'stat_a'));
var_dump(method_exists($baz, 'stat_b'));
var_dump(method_exists($baz, 'stat_c'));
?>
--EXPECT--
bool(true)
bool(true)
bool(true)
----
bool(true)
bool(true)
bool(true)
----
bool(true)
bool(true)
bool(true)
----
bool(true)
bool(true)
bool(true)
+21
View File
@@ -0,0 +1,21 @@
--TEST--
Zend Multibyte and UTF-8 BOM
--SKIPIF--
<?php
if (!in_array("detect_unicode", array_keys(ini_get_all()))) {
die("skip Requires configure --enable-zend-multibyte option");
}
if (!extension_loaded("mbstring")) {
die("skip Requires mbstring extension");
}
?>
--INI--
mbstring.internal_encoding=iso-8859-1
--FILE--
<?php
print "Hello World\n";
?>
===DONE===
--EXPECT--
Hello World
===DONE===
Binary file not shown.
+2
View File
@@ -1,3 +1,5 @@
<?php
unset($x)
?>
+1 -1
View File
@@ -15,5 +15,5 @@ echo "Done\n";
float(-100)
float(808792757210)
float(-4.5646456464565E+27)
float(-11276204760067000)
float(-1.1276204760067E+16)
Done
+2 -2
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -101,7 +101,7 @@ ZEND_API zval zval_used_for_init; /* True global variable */
/* version information */
static char *zend_version_info;
static uint zend_version_info_length;
#define ZEND_CORE_VERSION_INFO "Zend Engine v" ZEND_VERSION ", Copyright (c) 1998-2008 Zend Technologies\n"
#define ZEND_CORE_VERSION_INFO "Zend Engine v" ZEND_VERSION ", Copyright (c) 1998-2009 Zend Technologies\n"
#define PRINT_ZVAL_INDENT 4
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+10 -2
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -1779,9 +1779,13 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entr
efree(lc_class_name);
}
while (ptr->fname) {
if (zend_hash_exists(target_function_table, ptr->fname, strlen(ptr->fname)+1)) {
fname_len = strlen(ptr->fname);
lowercase_name = zend_str_tolower_dup(ptr->fname, fname_len);
if (zend_hash_exists(target_function_table, lowercase_name, fname_len+1)) {
efree(lowercase_name);
zend_error(error_type, "Function registration failed - duplicate name - %s%s%s", scope ? scope->name : "", scope ? "::" : "", ptr->fname);
}
efree(lowercase_name);
ptr++;
}
zend_unregister_functions(functions, count, target_function_table TSRMLS_CC);
@@ -2212,6 +2216,10 @@ static int zend_is_callable_check_func(int check_flags, zval ***zobj_ptr_ptr, ze
retval = 0;
}
}
if (!retval && *zobj_ptr_ptr && *ce_ptr && (*ce_ptr)->__call != 0) {
retval = (*ce_ptr)->__call != NULL;
*fptr_ptr = (*ce_ptr)->__call;
}
}
}
}
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+24 -11
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -164,7 +164,7 @@ static zend_mm_segment* zend_mm_mem_mmap_realloc(zend_mm_storage *storage, zend_
static void zend_mm_mem_mmap_free(zend_mm_storage *storage, zend_mm_segment* segment)
{
munmap(segment, segment->size);
munmap((void*)segment, segment->size);
}
#endif
@@ -399,9 +399,9 @@ struct _zend_mm_heap {
size_t compact_size;
zend_mm_segment *segments_list;
zend_mm_storage *storage;
size_t real_size;
size_t real_size;
size_t real_peak;
size_t limit;
size_t limit;
size_t size;
size_t peak;
size_t reserve_size;
@@ -432,8 +432,8 @@ struct _zend_mm_heap {
#define ZEND_MM_REST_BUCKET(heap) \
(zend_mm_free_block*)((char*)&heap->rest_buckets[0] + \
sizeof(zend_mm_free_block*) * 2 - \
sizeof(zend_mm_small_free_block))
sizeof(zend_mm_free_block*) * 2 - \
sizeof(zend_mm_small_free_block))
#if ZEND_MM_COOKIES
@@ -1061,16 +1061,26 @@ ZEND_API zend_mm_heap *zend_mm_startup_ex(const zend_mm_mem_handlers *handlers,
}
if (internal) {
int i;
zend_mm_free_block *p;
zend_mm_free_block *p, *q, *orig;
zend_mm_heap *mm_heap = _zend_mm_alloc_int(heap, sizeof(zend_mm_heap) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC);
*mm_heap = *heap;
p = ZEND_MM_SMALL_FREE_BUCKET(mm_heap, 0);
orig = ZEND_MM_SMALL_FREE_BUCKET(heap, 0);
for (i = 0; i < ZEND_MM_NUM_BUCKETS; i++) {
p->prev_free_block->next_free_block = p;
p->next_free_block->prev_free_block = p;
q = p;
while (q->prev_free_block != orig) {
q = q->prev_free_block;
}
q->prev_free_block = p;
q = p;
while (q->next_free_block != orig) {
q = q->next_free_block;
}
q->next_free_block = p;
p = (zend_mm_free_block*)((char*)p + sizeof(zend_mm_free_block*) * 2);
orig = (zend_mm_free_block*)((char*)orig + sizeof(zend_mm_free_block*) * 2);
if (mm_heap->large_free_buckets[i]) {
mm_heap->large_free_buckets[i]->parent = &mm_heap->large_free_buckets[i];
}
@@ -1115,7 +1125,10 @@ ZEND_API zend_mm_heap *zend_mm_startup(void)
if (tmp) {
seg_size = zend_atoi(tmp, 0);
if (zend_mm_low_bit(seg_size) != zend_mm_high_bit(seg_size)) {
fprintf(stderr, "ZEND_MM_SEG_SIZE must be a power ow two.\n");
fprintf(stderr, "ZEND_MM_SEG_SIZE must be a power of two\n");
exit(255);
} else if (seg_size < ZEND_MM_ALIGNED_SEGMENT_SIZE + ZEND_MM_ALIGNED_HEADER_SIZE) {
fprintf(stderr, "ZEND_MM_SEG_SIZE is too small\n");
exit(255);
}
} else {
@@ -1791,7 +1804,7 @@ static void *_zend_mm_alloc_int(zend_mm_heap *heap, size_t size ZEND_FILE_LINE_D
heap->cache_stat[ZEND_MM_NUM_BUCKETS].miss++;
#endif
best_fit = zend_mm_search_large_block(heap, true_size);
best_fit = zend_mm_search_large_block(heap, true_size);
if (!best_fit && heap->real_size >= heap->limit - heap->block_size) {
zend_mm_free_block *p = heap->rest_buckets[0];
+19 -18
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -78,29 +78,29 @@ ZEND_API size_t _zend_mem_block_size(void *ptr TSRMLS_DC ZEND_FILE_LINE_DC ZEND_
inline static void * __zend_malloc(size_t len)
{
void *tmp = malloc(len);
if (tmp) {
return tmp;
}
fprintf(stderr, "Out of memory\n");
exit(1);
void *tmp = malloc(len);
if (tmp) {
return tmp;
}
fprintf(stderr, "Out of memory\n");
exit(1);
}
inline static void * __zend_calloc(size_t nmemb, size_t len)
{
void *tmp = _safe_malloc(nmemb, len, 0);
memset(tmp, 0, len);
return tmp;
void *tmp = _safe_malloc(nmemb, len, 0);
memset(tmp, 0, len);
return tmp;
}
inline static void * __zend_realloc(void *p, size_t len)
{
p = realloc(p, len);
if (p) {
return p;
}
fprintf(stderr, "Out of memory\n");
exit(1);
p = realloc(p, len);
if (p) {
return p;
}
fprintf(stderr, "Out of memory\n");
exit(1);
}
@@ -113,6 +113,7 @@ inline static void * __zend_realloc(void *p, size_t len)
#define safe_perealloc(ptr, nmemb, size, offset, persistent) ((persistent)?_safe_realloc((ptr), (nmemb), (size), (offset)):safe_erealloc((ptr), (nmemb), (size), (offset)))
#define perealloc_recoverable(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc_recoverable((ptr), (size)))
#define pestrdup(s, persistent) ((persistent)?strdup(s):estrdup(s))
#define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(length)))
#define pemalloc_rel(size, persistent) ((persistent)?__zend_malloc(size):emalloc_rel(size))
#define pefree_rel(ptr, persistent) ((persistent)?free(ptr):efree_rel(ptr))
@@ -199,12 +200,12 @@ ZEND_API size_t _zend_mm_block_size(zend_mm_heap *heap, void *p ZEND_FILE_LINE_D
#define zend_mm_alloc(heap, size) _zend_mm_alloc((heap), (size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
#define zend_mm_free(heap, p) _zend_mm_free((heap), (p) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
#define zend_mm_realloc(heap, p, size) _zend_mm_realloc((heap), (p), (size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
#define zend_mm_block_size(heap, p) _zend_mm_block_size((heap), (p), ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
#define zend_mm_block_size(heap, p) _zend_mm_block_size((heap), (p) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
#define zend_mm_alloc_rel(heap, size) _zend_mm_alloc((heap), (size) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
#define zend_mm_free_rel(heap, p) _zend_mm_free((heap), (p) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
#define zend_mm_realloc_rel(heap, p, size) _zend_mm_realloc((heap), (p), (size) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
#define zend_mm_block_size_rel(heap, p) _zend_mm_block_size((heap), (p), ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
#define zend_mm_block_size_rel(heap, p) _zend_mm_block_size((heap), (p) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
/* Heaps with user defined storage */
typedef struct _zend_mm_storage zend_mm_storage;
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+39 -45
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -454,35 +454,24 @@ ZEND_FUNCTION(error_reporting)
Define a new constant */
ZEND_FUNCTION(define)
{
zval **var, **val, **non_cs, *val_free = NULL;
int case_sensitive;
char *name;
int name_len;
zval *val;
zval *val_free = NULL;
zend_bool non_cs = 0;
int case_sensitive = CONST_CS;
zend_constant c;
switch (ZEND_NUM_ARGS()) {
case 2:
if (zend_get_parameters_ex(2, &var, &val)==FAILURE) {
RETURN_FALSE;
}
case_sensitive = CONST_CS;
break;
case 3:
if (zend_get_parameters_ex(3, &var, &val, &non_cs)==FAILURE) {
RETURN_FALSE;
}
convert_to_long_ex(non_cs);
if (Z_LVAL_PP(non_cs)) {
case_sensitive = 0;
} else {
case_sensitive = CONST_CS;
}
break;
default:
ZEND_WRONG_PARAM_COUNT();
break;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|b", &name, &name_len, &val, &non_cs) == FAILURE) {
return;
}
if(non_cs) {
case_sensitive = 0;
}
repeat:
switch (Z_TYPE_PP(val)) {
switch (Z_TYPE_P(val)) {
case IS_LONG:
case IS_DOUBLE:
case IS_STRING:
@@ -492,13 +481,13 @@ repeat:
break;
case IS_OBJECT:
if (!val_free) {
if (Z_OBJ_HT_PP(val)->get) {
val_free = *val = Z_OBJ_HT_PP(val)->get(*val TSRMLS_CC);
if (Z_OBJ_HT_P(val)->get) {
val_free = val = Z_OBJ_HT_P(val)->get(val TSRMLS_CC);
goto repeat;
} else if (Z_OBJ_HT_PP(val)->cast_object) {
} else if (Z_OBJ_HT_P(val)->cast_object) {
ALLOC_INIT_ZVAL(val_free);
if (Z_OBJ_HT_PP(val)->cast_object(*val, val_free, IS_STRING TSRMLS_CC) == SUCCESS) {
val = &val_free;
if (Z_OBJ_HT_P(val)->cast_object(val, val_free, IS_STRING TSRMLS_CC) == SUCCESS) {
val = val_free;
break;
}
}
@@ -511,16 +500,15 @@ repeat:
}
RETURN_FALSE;
}
convert_to_string_ex(var);
c.value = **val;
c.value = *val;
zval_copy_ctor(&c.value);
if (val_free) {
zval_ptr_dtor(&val_free);
}
c.flags = case_sensitive; /* non persistent */
c.name = zend_strndup(Z_STRVAL_PP(var), Z_STRLEN_PP(var));
c.name_len = Z_STRLEN_PP(var)+1;
c.name = zend_strndup(name, name_len);
c.name_len = name_len+1;
c.module_number = PHP_USER_CONSTANT;
if (zend_register_constant(&c TSRMLS_CC) == SUCCESS) {
RETURN_TRUE;
@@ -710,8 +698,6 @@ ZEND_FUNCTION(is_a)
/* {{{ add_class_vars */
static void add_class_vars(zend_class_entry *ce, HashTable *properties, zval *return_value TSRMLS_DC)
{
int instanceof = EG(scope) && instanceof_function(EG(scope), ce TSRMLS_CC);
if (zend_hash_num_elements(properties) > 0) {
HashPosition pos;
zval **prop;
@@ -720,20 +706,28 @@ static void add_class_vars(zend_class_entry *ce, HashTable *properties, zval *re
while (zend_hash_get_current_data_ex(properties, (void **) &prop, &pos) == SUCCESS) {
char *key, *class_name, *prop_name;
uint key_len;
ulong num_index;
ulong num_index, h;
int prop_name_len = 0;
zval *prop_copy;
zend_property_info *property_info;
zend_hash_get_current_key_ex(properties, &key, &key_len, &num_index, 0, &pos);
zend_hash_move_forward_ex(properties, &pos);
zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name);
if (class_name) {
if (class_name[0] != '*' && strcmp(class_name, ce->name)) {
/* filter privates from base classes */
continue;
} else if (!instanceof) {
/* filter protected if not inside class */
continue;
}
prop_name_len = strlen(prop_name);
h = zend_get_hash_value(prop_name, prop_name_len+1);
if (zend_hash_quick_find(&ce->properties_info, prop_name, prop_name_len+1, h, (void **) &property_info) == FAILURE) {
continue;
}
if (property_info->flags & ZEND_ACC_SHADOW) {
continue;
} else if ((property_info->flags & ZEND_ACC_PRIVATE) && EG(scope) != ce) {
continue;
} else if ((property_info->flags & ZEND_ACC_PROTECTED) && zend_check_protected(ce, EG(scope)) == 0) {
continue;
}
/* copy: enforce read only access */
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+29 -12
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -565,6 +565,7 @@ void zend_do_assign(znode *result, znode *variable, znode *value TSRMLS_DC)
CG(active_op_array)->vars[value->u.var].name,
CG(active_op_array)->vars[value->u.var].name_len, 1);
SET_UNUSED(opline->op2);
opline->op2.u.EA.type = ZEND_FETCH_LOCAL;
value = &opline->result;
}
}
@@ -655,6 +656,8 @@ void zend_do_assign_ref(znode *result, znode *lvar, znode *rvar TSRMLS_DC)
opline->opcode = ZEND_ASSIGN_REF;
if (zend_is_function_or_method_call(rvar)) {
opline->extended_value = ZEND_RETURNS_FUNCTION;
} else if (rvar->u.EA.type & ZEND_PARSED_NEW) {
opline->extended_value = ZEND_RETURNS_NEW;
} else {
opline->extended_value = 0;
}
@@ -1587,20 +1590,34 @@ void zend_do_pass_param(znode *param, zend_uchar op, int offset TSRMLS_DC)
zend_stack_top(&CG(function_call_stack), (void **) &function_ptr_ptr);
function_ptr = *function_ptr_ptr;
if (original_op==ZEND_SEND_REF
&& !CG(allow_call_time_pass_reference)) {
zend_error(E_COMPILE_WARNING,
"Call-time pass-by-reference has been deprecated; "
"If you would like to pass it by reference, modify the declaration of %s(). "
"If you would like to enable call-time pass-by-reference, you can set "
"allow_call_time_pass_reference to true in your INI file",
(function_ptr ? function_ptr->common.function_name : "[runtime function name]"));
if (original_op == ZEND_SEND_REF && !CG(allow_call_time_pass_reference)) {
if (function_ptr &&
function_ptr->common.function_name &&
function_ptr->common.type == ZEND_USER_FUNCTION &&
!ARG_SHOULD_BE_SENT_BY_REF(function_ptr, (zend_uint) offset)) {
zend_error(E_COMPILE_WARNING,
"Call-time pass-by-reference has been deprecated; "
"If you would like to pass it by reference, modify the declaration of %s(). "
"If you would like to enable call-time pass-by-reference, you can set "
"allow_call_time_pass_reference to true in your INI file", function_ptr->common.function_name);
} else {
zend_error(E_COMPILE_WARNING, "Call-time pass-by-reference has been deprecated");
}
}
if (function_ptr) {
if (ARG_MAY_BE_SENT_BY_REF(function_ptr, (zend_uint) offset)) {
op = (param->op_type & (IS_VAR|IS_CV))?ZEND_SEND_REF:ZEND_SEND_VAL;
send_by_reference = 0;
if (param->op_type & (IS_VAR|IS_CV)) {
send_by_reference = 1;
if (op == ZEND_SEND_VAR && zend_is_function_or_method_call(param)) {
/* Method call */
op = ZEND_SEND_VAR_NO_REF;
send_function = ZEND_ARG_SEND_FUNCTION | ZEND_ARG_SEND_SILENT;
}
} else {
op = ZEND_SEND_VAL;
send_by_reference = 0;
}
} else {
send_by_reference = ARG_SHOULD_BE_SENT_BY_REF(function_ptr, (zend_uint) offset) ? ZEND_ARG_SEND_BY_REF : 0;
}
@@ -2522,7 +2539,7 @@ void zend_do_early_binding(TSRMLS_D)
/* clear unnecessary ZEND_FETCH_CLASS opcode */
if (opline > CG(active_op_array)->opcodes &&
(opline-1)->opcode == ZEND_FETCH_CLASS) {
zend_op *fetch_class_opline = opline-1;
zend_op *fetch_class_opline = opline-1;
zval_dtor(&fetch_class_opline->op2.u.constant);
fetch_class_opline->opcode = ZEND_NOP;
+4 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -600,6 +600,7 @@ int zendlex(znode *zendlval TSRMLS_DC);
#define ZEND_PARSED_FUNCTION_CALL (1<<3)
#define ZEND_PARSED_VARIABLE (1<<4)
#define ZEND_PARSED_REFERENCE_VARIABLE (1<<5)
#define ZEND_PARSED_NEW (1<<6)
/* unset types */
@@ -658,6 +659,7 @@ int zendlex(znode *zendlval TSRMLS_DC);
#define ZEND_ARG_SEND_BY_REF (1<<0)
#define ZEND_ARG_COMPILE_TIME_BOUND (1<<1)
#define ZEND_ARG_SEND_FUNCTION (1<<2)
#define ZEND_ARG_SEND_SILENT (1<<3)
#define ZEND_SEND_BY_VAL 0
#define ZEND_SEND_BY_REF 1
@@ -685,6 +687,7 @@ int zendlex(znode *zendlval TSRMLS_DC);
#define ZEND_RETURNS_FUNCTION 1<<0
#define ZEND_RETURNS_NEW 1<<1
END_EXTERN_C()
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+3 -2
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -979,7 +979,7 @@ fetch_string_dim:
long index;
if (Z_TYPE_P(dim) == IS_DOUBLE) {
index = (long)Z_DVAL_P(dim);
DVAL_TO_LVAL(Z_DVAL_P(dim), index);
} else {
index = Z_LVAL_P(dim);
}
@@ -1402,6 +1402,7 @@ ZEND_API void execute_internal(zend_execute_data *execute_data_ptr, int return_v
} \
EG(in_execution) = EX(original_in_execution); \
EG(current_execute_data) = EX(prev_execute_data); \
EG(opline_ptr) = NULL; \
ZEND_VM_RETURN()
#include "zend_vm_execute.h"
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+24 -2
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -824,7 +824,9 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
}
EX(function_state).function =
Z_OBJ_HT_PP(fci->object_pp)->get_method(fci->object_pp, fname, fname_len TSRMLS_CC);
if (EX(function_state).function && calling_scope != EX(function_state).function->common.scope) {
if (EX(function_state).function &&
(EX(function_state).function->common.fn_flags & ZEND_ACC_PRIVATE) == 0 &&
calling_scope != EX(function_state).function->common.scope) {
char *function_name_lc = zend_str_tolower_dup(fname, fname_len);
if (zend_hash_find(&calling_scope->function_table, function_name_lc, fname_len+1, (void **) &EX(function_state).function)==FAILURE) {
efree(function_name_lc);
@@ -899,6 +901,26 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
}
}
/* Prevent crash because of stack reallocation */
if (!call_via_handler &&
fci->param_count &&
EG(argument_stack).top + fci->param_count > EG(argument_stack).max &&
*(void***)fci->params >= EG(argument_stack).elements &&
*(void***)fci->params < EG(argument_stack).top_element) {
/* Manual stack reallocation */
void **prev_elements = EG(argument_stack).elements;
void **prev_top_element = EG(argument_stack).top_element;
ZEND_PTR_STACK_RESIZE_IF_NEEDED((&EG(argument_stack)), fci->param_count);
for (i=0; i<fci->param_count; i++) {
if ((void**)fci->params[i] >= prev_elements &&
(void**)fci->params[i] < prev_top_element) {
fci->params[i] = (zval**)((void**)fci->params[i] - prev_elements + EG(argument_stack).elements);
}
}
}
for (i=0; i<fci->param_count; i++) {
zval *param;
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -3,7 +3,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -553,7 +553,7 @@ expr_without_variable:
T_LIST '(' { zend_do_list_init(TSRMLS_C); } assignment_list ')' '=' expr { zend_do_list_end(&$$, &$7 TSRMLS_CC); }
| variable '=' expr { zend_check_writable_variable(&$1); zend_do_assign(&$$, &$1, &$3 TSRMLS_CC); }
| variable '=' '&' variable { zend_check_writable_variable(&$1); zend_do_end_variable_parse(BP_VAR_W, 0 TSRMLS_CC); zend_do_end_variable_parse(BP_VAR_W, 0 TSRMLS_CC); zend_do_assign_ref(&$$, &$1, &$4 TSRMLS_CC); }
| variable '=' '&' T_NEW class_name_reference { zend_error(E_STRICT, "Assigning the return value of new by reference is deprecated"); zend_check_writable_variable(&$1); zend_do_extended_fcall_begin(TSRMLS_C); zend_do_begin_new_object(&$4, &$5 TSRMLS_CC); } ctor_arguments { zend_do_end_new_object(&$3, &$4, &$7 TSRMLS_CC); zend_do_extended_fcall_end(TSRMLS_C); zend_do_end_variable_parse(BP_VAR_W, 0 TSRMLS_CC); zend_do_assign_ref(&$$, &$1, &$3 TSRMLS_CC); }
| variable '=' '&' T_NEW class_name_reference { zend_error(E_STRICT, "Assigning the return value of new by reference is deprecated"); zend_check_writable_variable(&$1); zend_do_extended_fcall_begin(TSRMLS_C); zend_do_begin_new_object(&$4, &$5 TSRMLS_CC); } ctor_arguments { zend_do_end_new_object(&$3, &$4, &$7 TSRMLS_CC); zend_do_extended_fcall_end(TSRMLS_C); zend_do_end_variable_parse(BP_VAR_W, 0 TSRMLS_CC); $3.u.EA.type = ZEND_PARSED_NEW; zend_do_assign_ref(&$$, &$1, &$3 TSRMLS_CC); }
| T_NEW class_name_reference { zend_do_extended_fcall_begin(TSRMLS_C); zend_do_begin_new_object(&$1, &$2 TSRMLS_CC); } ctor_arguments { zend_do_end_new_object(&$$, &$1, &$4 TSRMLS_CC); zend_do_extended_fcall_end(TSRMLS_C);}
| T_CLONE expr { zend_do_clone(&$$, &$2 TSRMLS_CC); }
| variable T_PLUS_EQUAL expr { zend_check_writable_variable(&$1); zend_do_end_variable_parse(BP_VAR_RW, 0 TSRMLS_CC); zend_do_binary_assign_op(ZEND_ASSIGN_ADD, &$$, &$1, &$3 TSRMLS_CC); }
Loaded 100 of 3281 files, more files were not shown because too many files have changed in this diff. Show more