2006-12-17 Marcus Boerger * ext/spl/spl_observer.c ext/spl/tests/observer_003.phpt: - Make this work in unicode mode 2006-12-17 Brian Shire * (PHP_5_2) ext/standard/array.c ext/standard/tests/array/bug30074.phpt ext/standard/tests/array/bug30074.phpt: Fixed bug #30074 extract with EXTR_REFS was setting EG(unitialized_zval_ptr)->is_ref=1, affecting subsequent usage Added test 2006-12-17 Ilia Alshanetsky * main/main.c main/main.c: Fixed compiler warning * ext/imap/php_imap.c: MFB: Fixed bug #39779 (Enable AUTH PLAIN mechanism in underlaying libc-client). * (PHP_5_2) NEWS ext/imap/php_imap.c: Fixed bug #39779 (Enable AUTH PLAIN mechanism in underlaying libc-client). 2006-12-17 Hannes Magnusson * ext/filter/logical_filters.c: MFB: fix build * (PHP_5_2) ext/filter/logical_filters.c: Fix build 2006-12-16 Ilia Alshanetsky * ext/filter/logical_filters.c ext/filter/tests/bug39846.phpt: MFB: Fixed bug #39846 (Invalid IPv4 treated as valid). * (PHP_5_2) NEWS ext/filter/logical_filters.c ext/filter/tests/bug39846.phpt ext/filter/tests/bug39846.phpt: Fixed bug #39846 (Invalid IPv4 treated as valid). 2006-12-16 Hannes Magnusson * NEWS: Remove items that are already in 5.2 * ZendEngine2/zend_API.h ext/pdo_pgsql/pgsql_driver.c ext/standard/basic_functions.c: Fix ZTS build 2006-12-16 Marcus Boerger * ext/spl/spl_observer.c ext/spl/tests/observer_003.phpt: - Implement feature request #39836i (SplObjectStorage empty after unserialize) 2006-12-16 Andrei Zmievski * ZendEngine2/zend_operators.c ZendEngine2/zend_operators.h: Make convert_to_*() APIs return SUCCESS/FAILURE. 2006-12-15 Andrei Zmievski * README.UNICODE: Update with INI file info. * unicode-progress.txt ext/standard/basic_functions.c: Unicode support in ini_*() functions. * ZendEngine2/zend_alloc.c: __builtin_expect() exists only in GCC 3.0 and higher. * ZendEngine2/zend_API.h: Make all macros (RETURN_*, RETVAL_*, ZVAL_*, add_*) that convert binary strings to Unicode actually issues errors on failure. I'm surprised we haven't done this already. * ZendEngine2/zend_unicode.c: Fix potential buffer overflow in default conversion error handler. * ZendEngine2/zend.c: Make utf8_conv stop on conversion errors when converting to UTF-16. 2006-12-15 Andi Gutmans * ZendEngine2/zend_alloc.c: - MF 5.2 (put cookie in first place) * (PHP_5_2) ZendEngine2/zend_alloc.c: - I prefer cookie to be the first element. 2006-12-15 Dmitry Stogov * (PHP_5_2) NEWS ZendEngine2/zend_alloc.c ZendEngine2/zend_alloc.c: Added internal heap protection . safe unlinking . cookies . canary protection (debug build only) 2006-12-15 Wez Furlong * ext/pdo_sqlite/pdo_sqlite.c ext/pdo_sqlite/php_pdo_sqlite.h ext/pdo_sqlite/php_pdo_sqlite_int.h ext/pdo_sqlite/sqlite_driver.c ext/pdo_sqlite/sqlite_statement.c: merge php5 pdo_sqlite into head; this source compiles on both php5 and php6. 2006-12-15 Ilia Alshanetsky * (PHP_5_2) configure.in main/php_version.h: back to dev * (PHP_5_2) NEWS configure.in main/php_version.h: 5.2.1RC1 2006-12-15 Andrei Zmievski * (PHP_5_2) ext/standard/var_unserializer.c ext/standard/var_unserializer.re: Support for 'S' format in unserialize() (forward compatibility with PHP 6) 2006-12-14 Andrei Zmievski * ext/standard/var.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re: Use 'S' for escaped binary strings and 's' for non-escaped. 2006-12-14 Rob Richards * ext/dom/dom_fe.h ext/dom/php_dom.c ext/dom/php_dom.h ext/dom/xpath.c ext/dom/tests/domxpath.phpt: add ability to call PHP functions from XPath update test 2006-12-13 Ilia Alshanetsky * (PHP_5_2) NEWS sapi/apache2filter/sapi_apache2.c: Fixed bug #39816 (apxs2filter ignores httpd.conf & .htaccess php config settings). * (PHP_5_2) ext/standard/string.c: Removed deadcode found by Ron Korving * (PHP_5_2) ext/standard/basic_functions.c ext/wddx/wddx.c: optimize out strlen() calls * sapi/apache2handler/sapi_apache2.c: MFB: Fixed bug #39201 (Possible crash in Apache 2 with 413 ErrorHandler). * (PHP_5_2) NEWS sapi/apache2handler/sapi_apache2.c: Fixed bug #39201 (Possible crash in Apache 2 with 413 ErrorHandler). 2006-12-12 Sara Golemon * (PHP_5_2) ZendEngine2/zend_compile.c: MFH: Bugfix# 39435: 'foo' instanceof bar gives invalid opcode error * ZendEngine2/zend_compile.c: Bugfix# 39435: 'foo' instanceof bar gives invalid opcode error 2006-12-12 Antony Dovgal * ext/standard/file.c: erm.. somehow this part got here twice 2006-12-12 Michael Wallner * ext/recode/CREDITS ext/standard/credits_ext.h: - utf8 * unicode-progress.txt ext/posix/CREDITS ext/standard/credits.c ext/standard/credits_ext.h ext/standard/info.c ext/standard/info.h: - utf8 CREDITS and php_info API - unicode progress in info.c 2006-12-12 Andrei Zmievski * unicode-progress.txt: -** empty log message *** * ext/standard/basic_functions.c: Do not convert args to Unicode in getopt(), they should stay binary. * ext/standard/string.c: Make hebrev(c) support only binary strings. 2006-12-12 Ilia Alshanetsky * sapi/apache2handler/sapi_apache2.c: MFB: Fixed bug #39797 (virtual() does not reset changed INI settings). * (PHP_5_2) NEWS sapi/apache2handler/sapi_apache2.c: Fixed bug #39797 (virtual() does not reset changed INI settings). 2006-12-12 Andrei Zmievski * main/php_variables.c: Keep CLI args as binary strings. 2006-12-12 Ilia Alshanetsky * (PHP_5_2) ext/pcre/php_pcre.c: Removed dummy vars. 2006-12-12 Antony Dovgal * (PHP_5_2) ext/oci8/tests/connect_without_oracle_home.phpt ext/oci8/tests/connect_without_oracle_home_old.phpt: disable tests * ext/oci8/tests/connect_without_oracle_home.phpt ext/oci8/tests/connect_without_oracle_home_old.phpt: disable tests I don't think it makes sense to test a segfault which we cannot fix.. * ext/oci8/tests/privileged_connect1.phpt ext/oci8/tests/privileged_connect1.phpt ext/oci8/tests/statement_type_old.phpt tests/basic/023.phpt: fix test * (PHP_5_2) ext/oci8/tests/connect.inc ext/oci8/tests/details.inc ext/oci8/tests/lob_029.phpt: MFH: skip BFILE tests if Oracle is not on localhost * ext/oci8/tests/connect.inc ext/oci8/tests/details.inc ext/oci8/tests/details.inc ext/oci8/tests/lob_029.phpt: BFILE tests are only valid when Oracle is installed on the same host skip them if it's not * ext/standard/crypt.c: _THREAD_SAFE might be used instead of _REENTRANT * acinclude.m4 ext/standard/crypt.c: missing part of the fix for #39795 crypt.h defines struct crypt_data only if _REENTRANT is defined * ext/oci8/oci8_lob.c: fix LOBs internal position in Unicode mode * acinclude.m4: fix typo * (PHP_5_2) ext/oci8/tests/lob_028.phpt ext/oci8/tests/lob_029.phpt: add new tests * ext/oci8/tests/lob_028.phpt ext/oci8/tests/lob_028.phpt ext/oci8/tests/lob_029.phpt ext/oci8/tests/lob_029.phpt: add new tests * ext/oci8/oci8_lob.c: OCILobGetChunkSize() does not like BFILEs, return read_length right away 2006-12-12 Hannes Magnusson * (PHP_5_2) ext/pgsql/tests/02connection.phpt: Fix test * (PHP_5_2) ext/pdo_mysql/tests/bug_33689.phpt ext/pdo_mysql/tests/bug_37445.phpt ext/pdo_mysql/tests/bug_39483.phpt ext/pdo_mysql/tests/last_insert_id.phpt ext/pdo_mysql/tests/pecl_bug_5200.phpt ext/pdo_mysql/tests/pecl_bug_5780.phpt ext/pdo_mysql/tests/pecl_bug_5802.phpt ext/pdo_mysql/tests/show_tables.phpt: Fix skipif * (PHP_5_2) ext/mysqli/tests/061.phpt ext/mysqli/tests/065.phpt ext/mysqli/tests/skipif.inc: Fix tests 2006-12-12 Antony Dovgal * (PHP_5_2) NEWS acinclude.m4 configure.in ext/standard/crypt.c: MFH: fix #39795 (build fails on AIX because crypt_r() uses different data struct) * acinclude.m4 configure.in ext/standard/crypt.c: fix #39795 (build fails on AIX because crypt_r() uses different data struct) 2006-12-11 Andrei Zmievski * ZendEngine2/zend.c: Clarify stream_encoding. 2006-12-11 Ilia Alshanetsky * ext/date/php_date.c ext/date/tests/bug39782.phpt: MFB: Fixed bug #39782 (setTime() on a DateTime constructed with a Weekday yields incorrect results). * (PHP_5_2) NEWS ext/date/php_date.c ext/date/tests/bug39782.phpt ext/date/tests/bug39782.phpt: Fixed bug #39782 (setTime() on a DateTime constructed with a Weekday yields incorrect results). * (PHP_5_2) ZendEngine2/zend_operators.c: Fixed typo * (PHP_5_2) ZendEngine2/zend_operators.c: Removed bool<>long optimization as it causes issues with strict type checks * (PHP_5_2) ZendEngine2/zend_operators.c ZendEngine2/zend_operators.h: Minor optimization (2-3%) from Brian Shire * sapi/apache2filter/php_functions.c sapi/apache2handler/php_functions.c: MFB: Fixed bug #39787 (PHP doesn't work with Apache 2.3). * (PHP_5_2) NEWS sapi/apache2filter/php_functions.c sapi/apache2handler/php_functions.c: Fixed bug #39787 (PHP doesn't work with Apache 2.3). 2006-12-11 Antony Dovgal * ext/oci8/oci8_interface.c: prevent any possible problems with negative values * (PHP_5_2) ext/oci8/tests/lob_027.phpt: add new test * ext/oci8/tests/lob_027.phpt ext/oci8/tests/lob_027.phpt: add new test 2006-12-11 Ilia Alshanetsky * ext/date/lib/parse_date.c ext/date/lib/parse_date.re: MFB: Fixed bug #39791 (Crash in strtotime() on overly long relative date multipliers). * (PHP_5_2) NEWS ext/date/lib/parse_date.c ext/date/lib/parse_date.re: Fixed bug #39791 (Crash in strtotime() on overly long relative date multipliers). 2006-12-10 Marcus Boerger * (PHP_5_2) ext/spl/examples/dualiterator.inc ext/spl/examples/recursivecomparedualiterator.inc ext/spl/examples/recursivedualiterator.inc ext/spl/examples/tests/dualiterator_001.phpt: - MFH Fix comparison of RecursiveDualIterators * ext/spl/examples/dualiterator.inc ext/spl/examples/recursivecomparedualiterator.inc ext/spl/examples/recursivecomparedualiterator.inc ext/spl/examples/recursivedualiterator.inc ext/spl/examples/tests/dualiterator_001.phpt: - Fix comparison of RecursiveDualIterators 2006-12-10 Ilia Alshanetsky * (PHP_5_2) ext/standard/array.c: Optimize extract() 2006-12-10 Hannes Magnusson * ext/sqlite/pdo_sqlite2.c: Fix build 2006-12-10 Michael Wallner * ext/standard/credits.c ext/standard/info.c main/output.c main/php_output.h: - upgrade phpinfo() and phpcredits() 2006-12-10 Pierre-Alain Joye * ext/pdo_mysql/mysql_driver.c ext/pdo_oci/oci_driver.c ext/pdo_odbc/odbc_driver.c ext/sqlite/pdo_sqlite2.c: - build fix the other driver as well (a macro would be nicer) * ext/zip/php_zip.c: - MFB: addDir returns true * ext/gd/gd.c ext/gd/tests/bug38212.phpt ext/gd/tests/bug39286.phpt: - MFB: #39286, misleading error message when invalid dimensions are given * (PHP_5_2) NEWS: - #39286 entry * ext/gd/tests/bug39286.phpt ext/gd/tests/bug39286.phpt: file bug39286.phpt was initially added on branch PHP_5_2. * (PHP_5_2) ext/gd/gd.c ext/gd/tests/bug38212.phpt: - #39286, misleading error message when nvalid dimensions are given * ext/pdo_sqlite/sqlite_driver.c: - fix build on HEAD (not sure if it should compile on 6 and 5 or if it is required only for pdo, other drivers require this fix) * ext/gd/libgd/gd.c ext/gd/tests/bug39508.phpt: - MFB: #39508, imagefill crashes with small image * ext/gd/tests/bug39508.phpt ext/gd/tests/bug39508.phpt: file bug39508.phpt was initially added on branch PHP_5_2. * (PHP_5_2) NEWS: - #39508, add test (imagefill crashes with small image) * (PHP_5_2) NEWS: - #39780 entry * (PHP_5_2) ext/gd/gd.c ext/gd/libgd/gd_png.c ext/gd/tests/bug39780.phpt ext/gd/tests/bug39780.png: - MFH:#39780, PNG image with CRC/data error raises fatal error * ext/gd/gd.c ext/gd/libgd/gd_png.c ext/gd/tests/bug39780.phpt ext/gd/tests/bug39780.phpt ext/gd/tests/bug39780.png ext/gd/tests/bug39780.png: - #39780, PNG image with CRC/data error raises fatal error 2006-12-10 Edin Kadribasic * (PHP_5_2) NEWS: BFN * ext/standard/basic_functions.c: MFB: Fixed by #39751 by KevinJohnHoffman at gmail dot com * (PHP_5_2) ext/standard/basic_functions.c: Fixed by #39751 by KevinJohnHoffman at gmail dot com 2006-12-09 Wez Furlong * ext/pdo/config.m4 ext/pdo/pdo.c ext/pdo/pdo_dbh.c ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sqlstate.c ext/pdo/pdo_stmt.c ext/pdo/php_pdo.h ext/pdo/php_pdo_driver.h ext/pdo/php_pdo_int.h ext/pdo/php_pdo_phpvers_compat.h: merge PHP 5 pdo into HEAD. This source compiles on both PHP 5 and PHP 6. If you're poking around in here, please make sure that any changes you make compile on both PHP 5 and 6. Thanks! 2006-12-09 Ilia Alshanetsky * (PHP_5_2) NEWS ext/standard/filestat.c: Fixed bug #29840 (is_executable() does not honor safe_mode_exec_dir setting). 2006-12-09 Hannes Magnusson * tests/basic/022.phpt tests/basic/022.phpt tests/basic/023.phpt tests/basic/023.phpt: Cookie tests 2006-12-09 Ilia Alshanetsky * ext/curl/interface.c: Improve handling of POST data with Andrei's help. * run-tests.php ext/filter/filter.c ext/filter/tests/041.phpt main/php_variables.c: MFB: Fixed handling of multiple cookies with the same name. Added support for cookies into run-tests.php * (PHP_5_2) run-tests.php ext/filter/filter.c ext/filter/tests/041.phpt ext/filter/tests/041.phpt: Fixed handling of multiple cookies with the same name. Added support for cookies into run-tests.php 2006-12-09 Hannes Magnusson * ext/curl/interface.c: Fix build 2006-12-09 Ilia Alshanetsky * main/php_variables.c: MFB: Strip leading spaces from cookie names, that can come from multi-cookie headers where ; can be followed by any number of spaces. * (PHP_5_2) main/php_variables.c: Strip leading spaces from cookie names, that can come from multi-cookie headers where ; can be followed by any number of spaces. 2006-12-09 Rob Richards * (PHP_5_2) NEWS: BFN * ext/com_dotnet/com_typeinfo.c ext/com_dotnet/tests/bug39606.phpt: MFB: fix heap corruption when adding/caching typelib (also fixes bug 39606) add test * (PHP_5_2) ext/com_dotnet/com_typeinfo.c ext/com_dotnet/tests/bug39606.phpt ext/com_dotnet/tests/bug39606.phpt: fix heap corruption when adding/caching typelib (also fixes bug 39606) add test 2006-12-09 Ilia Alshanetsky * ext/filter/tests/007.phpt ext/filter/tests/011.phpt: MFB: Fixed tests * (PHP_5_2) ext/filter/tests/007.phpt ext/filter/tests/011.phpt: Fixed tests * ext/filter/tests/004.phpt: MFB: fixed test * (PHP_5_2) ext/filter/tests/004.phpt ext/pdo/tests/bug_39656.phpt: Fixed test 2006-12-08 Antony Dovgal * ext/standard/php_var.h ext/standard/var.c: don't change public API * (PHP_5_2) ext/standard/php_var.h ext/standard/var.c: MFH: fix possible issue in the serializer, which might currupt struc when reallocating arguments stack * ext/standard/php_var.h ext/standard/var.c: fix possible issue in the serializer, which might currupt struc when reallocating arguments stack (no reproduce case, sorry) * (PHP_5_2) NEWS ext/oci8/oci8_lob.c ext/oci8/php_oci8_int.h: MFH: fix #39732 (oci_bind_array_by_name doesn't work on Solaris 64bit) * ext/oci8/oci8_lob.c ext/oci8/php_oci8_int.h: fix #39732 (oci_bind_array_by_name doesn't work on Solaris 64bit) * ext/standard/iptc.c: fix typo 2006-12-08 Ilia Alshanetsky * ext/pdo/pdo_stmt.c ext/pdo_mysql/mysql_statement.c: MFB: Fixed bug #39759 (Can't use stored procedures fetching multiple result sets in pdo_mysql). * (PHP_5_2) NEWS ext/pdo/pdo_stmt.c ext/pdo_mysql/mysql_driver.c ext/pdo_mysql/mysql_statement.c ext/pdo_mysql/tests/pecl_bug_5780.phpt: Fixed bug #39759 (Can't use stored procedures fetching multiple result sets in pdo_mysql). 2006-12-08 Andrei Zmievski * ext/standard/dl.c: Unicode filename support in dl(). * main/main.c: Don't use zend_ascii_hash_find() here -- module names are binary strings. 2006-12-08 Rob Richards * (PHP_5_2) ext/simplexml/tests/027.phpt ext/simplexml/tests/bug35785.phpt: fix tests 2006-12-08 Ilia Alshanetsky * (PHP_5_2) NEWS ext/filter/filter.c ext/filter/tests/bug39763.phpt ext/filter/tests/bug39763.phpt: Fixed bug #39763 (magic quotes are applied twice by ext/filter in parse_str()) 2006-12-08 Antony Dovgal * (PHP_5_2) NEWS: -BFN * ext/filter/filter.c ext/filter/filter.c: revert the fix for #39763 2006-12-08 Rob Richards * ext/dom/document.c ext/dom/xpath.c ext/dom/tests/domxpath.phpt: mark more functions unicode safe add test * ext/dom/documentfragment.c ext/dom/domconfiguration.c ext/dom/domerrorhandler.c ext/dom/domimplementation.c ext/dom/domimplementationlist.c ext/dom/domimplementationsource.c ext/dom/domstringlist.c ext/dom/entityreference.c ext/dom/namednodemap.c ext/dom/namelist.c ext/dom/node.c ext/dom/processinginstruction.c ext/dom/string_extend.c ext/dom/text.c ext/dom/userdatahandler.c ext/dom/xpath.c ext/dom/tests/domattributes.phpt ext/dom/tests/domelement.phpt ext/dom/tests/domfragment.phpt ext/dom/tests/domimplementation.phpt ext/dom/tests/dompi.phpt: mark more functions unicode safe add tests 2006-12-08 Dmitry Stogov * ZendEngine2/zend_execute.c ZendEngine2/zend_object_handlers.c ZendEngine2/tests/bug38146.phpt ZendEngine2/tests/bug39775.phpt ext/spl/tests/iterator_035.phpt tests/classes/array_access_003.phpt tests/classes/array_access_004.phpt tests/classes/array_access_005.phpt tests/classes/array_access_008.phpt tests/classes/array_access_012.phpt: Fixed bug #39775 ("Indirect modification ..." message is not shown) * (PHP_5_2) NEWS ZendEngine2/zend_execute.c ZendEngine2/zend_object_handlers.c ZendEngine2/tests/bug38146.phpt ZendEngine2/tests/bug39775.phpt ZendEngine2/tests/bug39775.phpt ext/spl/tests/iterator_035.phpt tests/classes/array_access_003.phpt tests/classes/array_access_004.phpt tests/classes/array_access_005.phpt tests/classes/array_access_008.phpt tests/classes/array_access_012.phpt: Fixed bug #39775 ("Indirect modification ..." message is not shown) The fix breaks two SimpleXML tests those must be fixed 2006-12-08 Antony Dovgal * (PHP_5_2) ext/standard/tests/assert/assert03.phpt ext/standard/tests/assert/assert04.phpt: add new tests by * ext/standard/tests/assert/assert03.phpt ext/standard/tests/assert/assert03.phpt ext/standard/tests/assert/assert04.phpt ext/standard/tests/assert/assert04.phpt: add new tests by 2006-12-08 Dmitry Stogov * ZendEngine2/zend_alloc.c ZendEngine2/zend_alloc.c: Fixed possible failure 2006-12-08 Nuno Lopes * ext/pcre/tests/bug21758.phpt ext/pcre/tests/bug27011.phpt ext/pcre/tests/bug38600.phpt: MFB: new tests * ext/pcre/tests/bug21758.phpt ext/pcre/tests/bug21758.phpt ext/pcre/tests/bug27011.phpt ext/pcre/tests/bug27011.phpt ext/pcre/tests/bug38600.phpt ext/pcre/tests/bug38600.phpt: file bug21758.phpt was initially added on branch PHP_5_2. 2006-12-08 Ilia Alshanetsky * ext/curl/interface.c: Fixed typo 2006-12-08 Sara Golemon * ext/standard/file.c: More BC bodges for fgets/fgetss 2006-12-08 Ilia Alshanetsky * ext/curl/interface.c: Allow POST of unicode data as utf8 2006-12-07 Antony Dovgal * ext/standard/tests/strings/bug39350.phpt: MFB test * ext/standard/file.c ext/standard/tests/file/fgetss.phpt ext/standard/tests/file/fgetss1.phpt: MFB tests (they still fail though) fix BC in fgetss() 2006-12-07 Andrei Zmievski * ext/standard/datetime.c: Unicode support in strptime(). Uses runtime encoding for conversion. * ext/standard/versioning.c: version_compare() will use runtime encoding. * ext/standard/iptc.c: Unicode support/safety in iptc* functions. Untested, cause I know crap about IPTC. 2006-12-07 Antony Dovgal * (PHP_5_2) ZendEngine2/zend_strtod.c ext/standard/formatted_print.c: initialize variables * ZendEngine2/zend_strtod.c ext/standard/formatted_print.c: initialize variables and make Coverity happy 2006-12-07 Andrei Zmievski * ZendEngine2/zend_hash.c ZendEngine2/zend_strtol.c: Apply Matt W's patch to only allow ASCII digits and not use u_digit(). * ZendEngine2/zend_API.h: Guard against ambiguous 'else' clauses. * ext/standard/url.c: Unicode support in parse_url(). 2006-12-07 Antony Dovgal * (PHP_5_2) NEWS ext/filter/filter.c: MFH: fix #39763 (magic quotes are applied twice by ext/filter) * ext/filter/filter.c: fix #39763 (magic quotes are applied twice by ext/filter) no need to add slashes manually, they are added by php_register_variable_ex() 2006-12-07 Sara Golemon * ext/standard/file.c: Change fgets() behavior back to BC version 2006-12-07 Ilia Alshanetsky * ext/posix/config.m4 ext/posix/posix.c: MFB: Fixed bug #39754 (Some POSIX extension functions not thread safe). * (PHP_5_2) NEWS ext/posix/config.m4 ext/posix/posix.c: Fixed bug #39754 (Some POSIX extension functions not thread safe). * ext/curl/interface.c: Allow submission of unicode data in utf8 form 2006-12-06 Sara Golemon * ext/standard/string.c: Use proper zstr for str_getcsv() and add documentation for Andrei's peace of mind 2006-12-06 Rasmus Lerdorf * (PHP_5_2) NEWS: Typo 2006-12-06 Antony Dovgal * ext/pdo_odbc/package.xml: test. please ignore 2006-12-06 Ilia Alshanetsky * ext/curl/interface.c: Final set of unicode changes * ext/curl/interface.c: First part of unicode upgrade 2006-12-06 Antony Dovgal * ext/standard/array.c ext/standard/basic_functions.c ext/standard/basic_functions.h: fix import_request_variables() * ext/oci8/oci8_interface.c ext/oci8/tests/statement_type.phpt: add Unicode support to oci_statement_type() * ext/oci8/oci8_interface.c: mark most of the OCI8 functions as unicode aware * ext/standard/formatted_print.c: move handling of 'F' to the top 2006-12-06 Ilia Alshanetsky * ext/curl/multi.c: Make functions as being unicode safe 2006-12-06 Antony Dovgal * (PHP_5_2) ext/standard/formatted_print.c: MFH: add missing 'F' modified (noticed by Matt) * ext/standard/formatted_print.c: add missing 'F' modified (noticed by Matt) 2006-12-06 Rob Richards * ext/openssl/xp_ssl.c ext/pdo_sqlite/sqlite/src/date.c: MFB: Fix win32 build * (PHP_5_2) ext/openssl/xp_ssl.c ext/pdo_sqlite/sqlite/src/date.c: Fix win32 build 2006-12-06 Antony Dovgal * ZendEngine2/tests/unset_cv05.phpt ext/standard/tests/array/array_fill.phpt ext/standard/tests/array/bug14580.phpt ext/standard/tests/general_functions/007.phpt ext/standard/tests/serialize/002.phpt ext/standard/tests/strings/bug24312.phpt ext/standard/tests/strings/bug36306.phpt ext/standard/tests/strings/crc32.phpt ext/standard/tests/strings/crypt.phpt ext/standard/tests/strings/htmlentities.phpt ext/standard/tests/strings/strrev.phpt ext/standard/tests/strings/strtotitle.phpt ext/standard/tests/strings/strtoupper.phpt tests/classes/bug26737.phpt tests/lang/034.phpt tests/lang/bug24783.phpt tests/lang/bug30638.phpt tests/lang/each_binary_safety.phpt: fix tests * ZendEngine2/zend_strtod.c: add zend_u_strtod() implementation by Matt Wilmas major speedup when using floats in Unicode mode also fixes several problems with the current code * ZendEngine2/zend_strtod.c: destroy freelist before destroying the mutexes * (PHP_5_2) NEWS: news * (PHP_5_2) ZendEngine2/zend.c ZendEngine2/zend_strtod.c ZendEngine2/zend_strtod.h ext/standard/formatted_print.c ext/standard/tests/serialize/003.phpt ext/standard/tests/strings/sprintf_f.phpt main/snprintf.c main/snprintf.h main/spprintf.c: MFH: use BSD licensed implementation of double-to-string utilities instead of LGPL one this patch also fixes thread safety issues in zend_strtod() * ZendEngine2/zend.c ZendEngine2/zend_strtod.c ZendEngine2/zend_strtod.h ext/standard/formatted_print.c ext/standard/tests/serialize/003.phpt ext/standard/tests/strings/sprintf_f.phpt main/snprintf.c main/snprintf.h main/spprintf.c: use BSD licensed implementation of double-to-string utilities instead of LGPL one this patch also fixes thread safety issues in zend_strtod() 2006-12-05 Antony Dovgal * ext/filter/config.m4: let PHP_ADD_EXTENSION_DEP() to take care of this 2006-12-05 Ilia Alshanetsky * ext/filter/config.m4: MFB: Fixed bug #39724 (Broken build due to spl/filter usage of pcre extension). * (PHP_5_2) NEWS ext/filter/config.m4: Fixed bug #39724 (Broken build due to spl/filter usage of pcre extension). 2006-12-05 Andrei Zmievski * ext/standard/array.c: extract() should convert keys using runtime encoding. 2006-12-05 Antony Dovgal * ext/standard/tests/array/bug33382.phpt ext/standard/tests/array/bug33382.phpt ext/standard/tests/array/bug36975.phpt ext/standard/tests/array/bug36975.phpt ext/standard/tests/file/bug35740.phpt ext/standard/tests/file/bug35740.phpt ext/standard/tests/file/bug39538.phpt ext/standard/tests/file/bug39538.phpt ext/standard/tests/general_functions/bug27678.phpt ext/standard/tests/general_functions/bug27678.phpt ext/xmlwriter/tests/bug39504.phpt ext/zlib/tests/bug_34821.phpt ext/zlib/tests/bug_34821.phpt: cosmetic improvements 2006-12-05 Frank M. Kromann * ext/ming/ming.c ext/ming/ming.c: Remove PHP4.x stuff * ext/ming/ming.c ext/ming/ming.c ext/ming/php_ming.h ext/ming/php_ming.h: 2006-12-05 Dmitry Stogov * ZendEngine2/tests/bug39721.phpt ZendEngine2/tests/bug39721.phpt: file bug39721.phpt was initially added on branch PHP_5_2. * (PHP_5_2) NEWS ZendEngine2/zend_compile.c ZendEngine2/zend_compile.c ZendEngine2/tests/bug39721.phpt: Fixed bug #39721 (Runtime inheritance causes data corruption) 2006-12-05 Antony Dovgal * (PHP_5_2) ext/standard/http_fopen_wrapper.c: MFH: nuke redundant zval_ptr_dtor() call * ext/standard/http_fopen_wrapper.c: nuke redundant zval_ptr_dtor() call and fix memory corruption/segfault 2006-12-05 Andrei Zmievski * ext/standard/http.c: Unicode support in http_build_query(). 2006-12-05 Ilia Alshanetsky * ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re ext/pdo/tests/bug_36798.phpt: MFB: Fixed bug #36798 (Error parsing named parameters with queries containing high-ascii chars). * (PHP_5_2) NEWS ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re ext/pdo/tests/bug_36798.phpt ext/pdo/tests/bug_36798.phpt: Fixed bug #36798 (Error parsing named parameters with queries containing high-ascii chars). * (PHP_5_2) ext/dba/config.m4: Revert previous patch and it breaks builds with built-in cdb lib 2006-12-05 Hannes Magnusson * ext/pdo/tests/bug_39656.phpt: MFB: fix test * (PHP_5_2) ext/pdo/tests/bug_39656.phpt: Fix test 2006-12-05 Antony Dovgal * ext/standard/file.c: don't pass negative maxchars to php_stream_get_line_ex() * ZendEngine2/zend_compile.c: remove duplicating line 2006-12-05 Rob Richards * (PHP_5_2) NEWS: BFN * ext/xsl/xsltprocessor.c: MFB: fix bug #39625 (Apache crashes on importStylesheet call) * (PHP_5_2) ext/xsl/xsltprocessor.c: fix bug #39625 (Apache crashes on importStylesheet call) 2006-12-05 Dmitry Stogov * (PHP_5_2) NEWS sapi/cgi/fastcgi.c sapi/cgi/fastcgi.c: Fixed FastCGI impersonation for persistent connections on Windows * configure.in configure.in ZendEngine2/Makefile.am ZendEngine2/Makefile.am ZendEngine2/Zend.dsp ZendEngine2/Zend.dsp ZendEngine2/ZendTS.dsp ZendEngine2/ZendTS.dsp ZendEngine2/zend_mm.c ZendEngine2/zend_mm.c ZendEngine2/zend_mm.h ZendEngine2/zend_mm.h win32/build/config.w32 win32/build/config.w32: Removed unused zend_mm.* 2006-12-05 Sara Golemon * NEWS ext/standard/basic_functions.c ext/standard/file.c ext/standard/php_string.h ext/standard/string.c: Add str_getcsv() and fix a couple cases in recent fgetcsv() reimplementation * ext/standard/file.c ext/standard/file.h ext/standard/tests/file/bug12556.phpt ext/standard/tests/file/fgetcsv.phpt: Unicode upgrade for fgetcsv() 2006-12-05 Stanislav Malyshev * ZendEngine2/zend_operators.c ZendEngine2/zend_operators.h ext/standard/basic_functions.c ext/standard/string.c main/main.c: Merge from 5.2: Improve tolower()-related functions on Windows and VC2005 by caching locale and using tolower_l function. 2006-12-05 Ilia Alshanetsky * ext/openssl/xp_ssl.c: MFB: Fixed bug #39571 (timeout ssl:// connections). * (PHP_5_2) NEWS ext/openssl/xp_ssl.c: Fixed bug #39571 (timeout ssl:// connections). 2006-12-05 Pierre-Alain Joye * (PHP_5_2) NEWS: - invalid filter * (PHP_5_2) ext/filter/filter.c ext/filter/filter_private.h ext/filter/tests/010.phpt ext/filter/tests/039.phpt: - MFH: invalid filter id should not return unsafe values * ext/filter/filter.c ext/filter/filter_private.h ext/filter/tests/010.phpt ext/filter/tests/039.phpt: - invalid filter id should not return unsafe values 2006-12-04 Pierre-Alain Joye * ext/filter/tests/008.phpt ext/filter/tests/009.phpt: - MFB: use %s * ext/filter/filter.c ext/filter/sanitizing_filters.c: - WS * (PHP_5_2) ext/filter/filter.c: - default filter is not string anymore (in comment) - WS and error msg sync with head 2006-12-04 Andrei Zmievski * ext/standard/head.c: Make headers-related functions accept Unicode strings, but only if their contents can be converted to ASCII. * ext/standard/string.c ext/standard/var.c: Unicode support in var_export(). 2006-12-04 Stanislav Malyshev * (PHP_5_2) ZendEngine2/zend_operators.c ZendEngine2/zend_operators.h ext/standard/basic_functions.c ext/standard/string.c main/main.c: Improve tolower()-related functions on Windows and VC2005 by caching locale and using tolower_l function. 2006-12-04 Ilia Alshanetsky * ext/calendar/tests/easter_date.phpt ext/calendar/tests/unixtojd.phpt: MFB: Fixed tests * (PHP_5_2) ext/calendar/tests/easter_date.phpt ext/calendar/tests/unixtojd.phpt: Fixed tests 2006-12-04 Antony Dovgal * (PHP_5_2) acinclude.m4 configure.in: MFH: fix build with Sun compiler, which doesn't support -O0 * acinclude.m4 configure.in: fix build with Sun compiler, which doesn't support -O0 * (PHP_5_2) ext/pcre/config0.m4 ext/spl/config.m4: MFH: partly fix #39724 ext/spl has a soft dependcy from ext/pcre (not ext/pcre-regex) * ext/pcre/config0.m4 ext/spl/config.m4: partly fix #39724 ext/spl has a soft dependcy from ext/pcre (not ext/pcre-regex) 2006-12-04 Ilia Alshanetsky * ext/pdo/tests/bug_39656.phpt: MFB: Fixed test (user is a reserved keyword in pgsql) * (PHP_5_2) ext/pdo/tests/bug_39656.phpt: Fixed test (user is a reserved keyword in pgsql) 2006-12-04 Antony Dovgal * (PHP_5_2) sapi/cli/tests/002-win32.phpt sapi/cli/tests/002.phpt sapi/cli/tests/004.phpt sapi/cli/tests/005.phpt sapi/cli/tests/006.phpt sapi/cli/tests/007.phpt sapi/cli/tests/008.phpt sapi/cli/tests/009.phpt sapi/cli/tests/010-2.phpt sapi/cli/tests/010.phpt sapi/cli/tests/011.phpt sapi/cli/tests/012.phpt sapi/cli/tests/013.phpt: fix tests * sapi/cli/tests/002-win32.phpt sapi/cli/tests/002.phpt sapi/cli/tests/004.phpt sapi/cli/tests/005.phpt sapi/cli/tests/006.phpt sapi/cli/tests/007.phpt sapi/cli/tests/008.phpt sapi/cli/tests/009.phpt sapi/cli/tests/010-2.phpt sapi/cli/tests/010.phpt sapi/cli/tests/011.phpt sapi/cli/tests/012.phpt sapi/cli/tests/013.phpt: fix tests, use -n to prevent any problems with existing php.ini 2006-12-04 Dmitry Stogov * (PHP_5_2) NEWS ZendEngine2/zend_alloc.c ZendEngine2/zend_alloc.c: Fixed bug #38274 (Memlimit fatal error sent to "wrong" stderr when using fastcgi) 2006-12-04 Antony Dovgal * ext/session/session.c main/main.c: fix retval type it should be int, not zend_bool 2006-12-04 Andrey Hristov * ext/mysqli/mysqli_api.c: dummy change 2006-12-04 Ilia Alshanetsky * (PHP_5_2) NEWS ext/session/session.c: Fixed bug #37627 (session save_path check checks the parent directory). 2006-12-04 Antony Dovgal * run-tests.php: look for tests in sapi/cli 2006-12-04 Ilia Alshanetsky * ext/pdo/pdo_stmt.c: MFB: Fixed bug #38319 (Remove bogus warnings from persistent PDO connections). * (PHP_5_2) NEWS ext/pdo/pdo_stmt.c: Fixed bug #38319 (Remove bogus warnings from persistent PDO connections). * ext/pdo/pdo_dbh.c: MFB: Fixed bug #38252 (Incorrect PDO error message on invalid default fetch mode). * (PHP_5_2) NEWS ext/pdo/pdo_dbh.c: Fixed bug #38252 (Incorrect PDO error message on invalid default fetch mode). * ext/pdo_mysql/tests/bug_39483.phpt: MFB: Added test for previous bug * ext/pdo_mysql/tests/bug_39483.phpt ext/pdo_mysql/tests/bug_39483.phpt: file bug_39483.phpt was initially added on branch PHP_5_2. * ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re: MFB: Fixed bug #39483 (Problem with handling of \ char in prepared statements). * (PHP_5_2) NEWS ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re: Fixed bug #39483 (Problem with handling of \ char in prepared statements). 2006-12-03 Ilia Alshanetsky * ext/pdo_mysql/mysql_driver.c: MFB: Default to buffered queries (much faster) Default to prepared statement emulation to avoid hitting MySQL bugs * (PHP_5_2) ext/pdo_mysql/mysql_driver.c: Default to buffered queries (much faster) Default to prepared statement emulation to avoid hitting MySQL bugs * ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re: MFB: Added missing check for mismatching number of tokens & bound params in prepared statement emulation. * (PHP_5_2) ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re: Added missing check for mismatching number of tokens & bound params in prepared statement emulation. * ext/filter/filter.c: MFB: Added "default" option that allows a default value to be set for an invalid or missing value. * (PHP_5_2) NEWS ext/filter/filter.c: Added "default" option that allows a default value to be set for an invalid or missing value. * (PHP_5_2) ext/dba/config.m4: Config fix from Gentoo * ext/standard/assert.c: MFB: Fixed bug #39718 (possible crash if assert.callback is set in ini). * (PHP_5_2) NEWS ext/standard/assert.c: Fixed bug #39718 (possible crash if assert.callback is set in ini). * main/php_scandir.c: MFB: Fixed php_readdir_r() usage in scandir emulation * (PHP_5_2) main/php_scandir.c: Fixed php_readdir_r() usage in scandir emulation 2006-12-03 Antony Dovgal * main/php_scandir.c: fix Solaris build * ext/ftp/ftp.c: fix leaks * ext/standard/crypt.c: fix AIX build 2006-12-03 Nuno Lopes * ext/pcre/tests/001.phpt ext/pcre/tests/002.phpt ext/pcre/tests/003.phpt ext/pcre/tests/004.phpt: add UEXPECT sections 2006-12-03 Hannes Magnusson * ext/pcre/tests/002.phpt: MFB: fix test on fbsd * (PHP_5_2) ext/pcre/tests/002.phpt: Fix test on fbsd 2006-12-02 Nuno Lopes * ext/pcre/tests/001.phpt ext/pcre/tests/002.phpt ext/pcre/tests/003.phpt ext/pcre/tests/004.phpt: MFH (not tested. so some tests may fail in unicode mode) * ext/pcre/tests/001.phpt ext/pcre/tests/001.phpt ext/pcre/tests/002.phpt ext/pcre/tests/002.phpt ext/pcre/tests/003.phpt ext/pcre/tests/003.phpt ext/pcre/tests/004.phpt ext/pcre/tests/004.phpt: file 001.phpt was initially added on branch PHP_5_2. 2006-12-02 Ilia Alshanetsky * ext/pdo/tests/pdo_016.phpt ext/pdo/tests/pdo_016a.phpt ext/pdo/tests/pdo_021.phpt ext/pdo_mysql/mysql_statement.c: MFB: Fixed bug #39527 (Failure to retrieve results when multiple unbuffered, prepared statements are used in pdo_mysql). * (PHP_5_2) NEWS ext/pdo/tests/pdo_016.phpt ext/pdo/tests/pdo_016a.phpt ext/pdo/tests/pdo_021.phpt ext/pdo_mysql/mysql_statement.c: Fixed bug #39527 (Failure to retrieve results when multiple unbuffered, prepared statements are used in pdo_mysql). 2006-12-01 Frank M. Kromann * (PHP_5_2) ext/sqlite/libsqlite/src/date.c ext/zip/lib/zip_dirent.c main/php_scandir.c win32/readdir.h: Fix win32 build * main/php_scandir.c win32/readdir.h: MFB: Fix win32 build 2006-12-01 Ilia Alshanetsky * (PHP_5_2) NEWS: Fixed typo 2006-12-01 Dmitry Stogov * (PHP_5_2) NEWS ZendEngine2/zend_alloc.c ZendEngine2/zend_alloc.c ZendEngine2/tests/bug39438.phpt: Bug #39438 (Fatal error: Out of memory) * ZendEngine2/tests/bug39438.phpt ZendEngine2/tests/bug39438.phpt: file bug39438.phpt was initially added on branch PHP_5_2. * ZendEngine2/zend_alloc.c ZendEngine2/zend_alloc.c: typo 2006-12-01 Andrei Zmievski * ext/standard/var.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re: Finalize Unicode support in serialize() and unserialize(). 2006-12-01 Ilia Alshanetsky * ext/dbase/dbase.c ext/dbase/tests/002.phpt: MFB: Fixed a possible memory corruption in dbase_open() with invalid open mode * (PHP_5_2) ext/dbase/dbase.c ext/dbase/tests/002.phpt: Fixed a possible memory corruption in dbase_open() with invalid open mode 2006-12-01 Andrei Zmievski * ext/standard/filestat.c: Fix group macro access. 2006-12-01 Nuno Lopes * ext/ftp/ftp.c ext/ftp/tests/bug39458-2.phpt ext/ftp/tests/bug39458.phpt ext/ftp/tests/server.inc: MFB: fix #39458 * (PHP_5_2) NEWS ext/ftp/tests/bug39458-2.phpt ext/ftp/tests/bug39458-2.phpt ext/ftp/tests/bug39458.phpt ext/ftp/tests/bug39458.phpt ext/ftp/tests/server.inc: tests + BFN * (PHP_5_2) ext/ftp/ftp.c: fix bug #39458: ftp_nlist() returns false on empty dirs 2006-12-01 Dmitry Stogov * (PHP_5_2) NEWS ZendEngine2/zend_alloc.c ZendEngine2/zend_alloc.c: Fixed bug #39702 (php crashes in the allocator on linux-m68k) * ZendEngine2/zend_API.c: Fixed buffer overflow. (Rob) * (PHP_5_2) NEWS ZendEngine2/zend_alloc.c ZendEngine2/zend_alloc.c: Fixed bug #39640 (Segfault with "Allowed memory size exhausted") * (PHP_5_2) NEWS ZendEngine2/zend_alloc.c ZendEngine2/zend_alloc.c: Fixed bug #39652 (Wrong negative results from memeory_get_usage()) 2006-12-01 Marcus Boerger * (PHP_5_2) ext/spl/examples/dualiterator.inc: - MFH: Fix handling of recursive inner iterators * ext/spl/examples/dualiterator.inc: - Fix handling of recursive inner iterators 2006-12-01 Ilia Alshanetsky * (PHP_4_4) ext/session/session.c: MFH: Disallow \0 chars inside session.save_path * ext/session/session.c: MFB: Disallow \0 chars inside session.save_path * (PHP_5_2) ext/session/session.c: Disallow \0 chars inside session.save_path 2006-11-30 Ilia Alshanetsky * (PHP_5_2) ext/soap/php_sdl.c: Small hash table optimization 2006-11-30 Andrei Zmievski * ext/standard/url.c: get_headers() will keep headers as binary strings. 2006-11-30 Antony Dovgal * (PHP_4_4) acinclude.m4 configure.in: MFH missing fixes required by autoconf 2.6x fixes bug #39696 2006-11-30 Andrei Zmievski * ext/standard/string.c: Mark setlocale() as Unicode-safe. It shouldn't be used in unicode.semantics=on mode anyway. * ext/standard/basic_functions.c: Forgot to mark import_request_variables() as Unicode-safe. * ext/standard/string.c: Mark strtr() as Unicode-safe. * ext/standard/pack.c: Mark pack()/unpack() as Unicode-safe. They will accept Unicode strings but convert them to binary. We can revisit supporting something like 'U' format in the future, if it's needed. * ext/standard/quot_print.c: Make quoted_printable_decode() take only ASCII strings. 2006-11-30 Ilia Alshanetsky * configure.in: MFB: Added check for crypt_r() * (PHP_5_2) configure.in: Added check for crypt_r() * ext/posix/config.m4: MFB: Added missing function checks * (PHP_5_2) ext/posix/config.m4: Added missing function checks * ext/pdo_sqlite/sqlite/src/date.c ext/sqlite/libsqlite/src/date.c ext/xmlrpc/libxmlrpc/xmlrpc.c ext/zip/lib/zip_dirent.c: zts fixes * (PHP_5_2) ext/pdo_sqlite/sqlite/src/date.c ext/sqlite/libsqlite/src/date.c ext/xmlrpc/libxmlrpc/xmlrpc.c ext/zip/lib/zip_dirent.c: last set of zts fixes * ext/interbase/ibase_query.c: MFB: Thread safety fixes. * (PHP_5_2) ext/interbase/ibase_query.c: Thread safety fixes. * main/php_scandir.c: MFB: Thread-safety issues * (PHP_5_2) main/php_scandir.c: Thread-safety issues * ext/standard/crypt.c: MFB: Use reantrant crypt_r() whenever possible. * (PHP_5_2) ext/standard/crypt.c: Use reantrant crypt_r() whenever possible. * ext/mime_magic/mime_magic.c: MFB: Use thread-safe code * (PHP_5_2) ext/mime_magic/mime_magic.c: Use thread-safe code 2006-11-30 Antony Dovgal * ZendEngine2/tests/bug39602.phpt ZendEngine2/tests/bug39602.phpt: fix test 2006-11-30 Ilia Alshanetsky * ext/posix/posix.c: MFB: Thread safety fixed for *nix systems * (PHP_5_2) ext/posix/posix.c: Thread safety fixed for *nix systems 2006-11-29 Ilia Alshanetsky * ext/standard/filestat.c: MFB: Fixed bug #39648 (Implementation of PHP functions chown() and chgrp() are not thread safe). * (PHP_5_2) NEWS configure.in ext/standard/filestat.c: Fixed bug #39648 (Implementation of PHP functions chown() and chgrp() are not thread safe). 2006-11-29 Antony Dovgal * ext/simplexml/simplexml.c: add missing folding marker 2006-11-29 Derick Rethans * (PHP_5_2) NEWS ext/date/lib/timezonedb.h ext/date/lib/timezonedb.h: - Updated timezone database to version 2006.16. 2006-11-29 Ilia Alshanetsky * ext/pdo_pgsql/pgsql_driver.c ext/pgsql/pgsql.c: MFB: Fixed bug #39663 (Memory leak in pg_get_notify() and a possible memory corruption on Windows in pgsql and pdo_pgsql extensions). * (PHP_5_2) NEWS ext/pdo_pgsql/pgsql_driver.c ext/pgsql/pgsql.c: Fixed bug #39663 (Memory leak in pg_get_notify() and a possible memory corruption on Windows in pgsql and pdo_pgsql extensions). 2006-11-29 Antony Dovgal * (PHP_5_2) NEWS ext/standard/tests/file/bug39673.phpt main/streams/plain_wrapper.c: MFH: fix #39673 (file_get_contents causes bus error on certain offsets) * ext/standard/tests/file/bug39673.phpt ext/standard/tests/file/bug39673.phpt main/streams/plain_wrapper.c: fix #39673 (file_get_contents causes bus error on certain offsets) 2006-11-29 Rob Richards * ext/simplexml/simplexml.c ext/simplexml/tests/bug39662.phpt: MFB: correct fix for bug #39662 to fix leak and tree corruption fix test * (PHP_5_2) ext/simplexml/simplexml.c ext/simplexml/tests/bug39662.phpt: correct fix for bug #39662 to fix leak and tree corruption fix test 2006-11-28 Marcus Boerger * ext/spl/examples/callbackfilteriterator.inc ext/spl/examples/callbackfilteriterator.inc: - Add new example 2006-11-28 Antony Dovgal * ZendEngine2/zend_builtin_functions.c: resolve coverity issue #224 * (PHP_5_2) ext/standard/html.h: add php_unescape_html_entities() proto to the header (fixes #39665) * ext/standard/html.h: add php_unescape_html_entities() proto to the header * (PHP_5_2) NEWS ext/simplexml/simplexml.c ext/simplexml/tests/bug39662.phpt: MFH: fix #39662 (Segfault when calling asXML() of a cloned SimpleXMLElement) * ext/simplexml/simplexml.c ext/simplexml/tests/bug39662.phpt ext/simplexml/tests/bug39662.phpt: fix #39662 (Segfault when calling asXML() of a cloned SimpleXMLElement) * ext/pdo/tests/bug_39656.phpt: add test * ext/pdo/tests/bug_39656.phpt ext/pdo/tests/bug_39656.phpt: file bug_39656.phpt was initially added on branch PHP_5_2. 2006-11-28 Ilia Alshanetsky * ext/pdo/pdo_stmt.c ext/pdo_pgsql/pgsql_statement.c: MFB: Fixed bug #39656 (crash when calling fetch() on a PDO statment object after closeCursor()). * (PHP_5_2) NEWS ext/pdo/pdo_stmt.c ext/pdo_pgsql/pgsql_statement.c: Fixed bug #39656 (crash when calling fetch() on a PDO statment object after closeCursor()). 2006-11-28 Antony Dovgal * (PHP_5_2) NEWS: BFN * (PHP_5_2) ext/dba/config.m4: MFH: fix #39653 (ext/dba doesn't check for db-4.5 and db-4.4 when db4 support is enabled) * ext/dba/config.m4: fix #39653 (ext/dba doesn't check for db-4.5 and db-4.4 when db4 support is enabled) 2006-11-28 Pierre-Alain Joye * (PHP_5_2) ext/zip/php_zip.c: - fix warning - addEmptyDir returns true on success - remove useless semi column 2006-11-28 Ilia Alshanetsky * ext/mcrypt/mcrypt.c ext/soap/php_http.c: MFB: Replace non-threadsafe rand() with php_rand_r() * (PHP_5_2) ext/mcrypt/mcrypt.c ext/soap/php_http.c: Replace non-threadsafe rand() with php_rand_r() 2006-11-27 Antony Dovgal * (PHP_5_2) NEWS ext/pdo_sqlite/sqlite_statement.c: MFH: fix #39564 (PDO::errorInfo() returns inconsistent information when sqlite3_step() fails) * ext/pdo_sqlite/sqlite_statement.c: fix #39564 (PDO::errorInfo() returns inconsistent information when sqlite3_step() fails) * ext/ftp/tests/004.phpt: fix test this errmsg is different on FreeBSD 2006-11-26 Alex Waugh * (PHP_5_2) sapi/webjames/webjames.c: MFH: Improve robustness of sending routines * sapi/webjames/webjames.c: Improve robustness of sending routines 2006-11-26 Ilia Alshanetsky * ext/mime_magic/mime_magic.c: MFB: Fixed bug #39623 (thread safety fixes on *nix for mime_magic extenion). * (PHP_5_2) ext/mime_magic/mime_magic.c ext/standard/basic_functions.c: Fixed bug #39623 (thread safety fixes on *nix for putenv() & mime_magic). * (PHP_4_4) NEWS ext/standard/info.c: MFH: Added a meta tag to phpinfo() output to prevent search engines from indexing the page. * ext/imap/tests/imap_utf8.phpt: MFB: Fixed test, in some versions of c-client returned value is always uppercase * (PHP_5_2) ext/imap/tests/imap_utf8.phpt: Fixed test, in some versions of c-client returned value is always uppercase * ext/dbase/tests/002.phpt: MFB: fixed test * (PHP_5_2) ext/dbase/tests/002.phpt: Fixed test * ext/standard/info.c: MFB: Added a meta tag to phpinfo() output to prevent search engines from indexing the page. * (PHP_5_2) NEWS ext/standard/info.c: Added a meta tag to phpinfo() output to prevent search engines from indexing the page. 2006-11-24 Antony Dovgal * (PHP_5_2) NEWS ext/standard/string.c ext/standard/tests/strings/bug39621.phpt: MFH: fix #39621 (str_replace() is not binary safe on strings with equal length) * ext/standard/string.c ext/standard/tests/strings/bug39621.phpt ext/standard/tests/strings/bug39621.phpt: fix #39621 (str_replace() is not binary safe on strings with equal length) * ext/standard/levenshtein.c: add missing argument to zend_parse_parameters() 2006-11-24 Nuno Lopes * ext/ftp/tests/006.phpt ext/ftp/tests/bug39583.phpt ext/ftp/tests/server.inc ext/standard/tests/general_functions/phpcredits.phpt ext/standard/tests/general_functions/phpcredits2.phpt ext/standard/tests/general_functions/phpinfo.phpt ext/standard/tests/general_functions/phpinfo2.phpt: more tests * ext/ftp/tests/006.phpt ext/ftp/tests/006.phpt ext/ftp/tests/bug39583.phpt ext/ftp/tests/server.inc ext/standard/tests/general_functions/phpcredits.phpt ext/standard/tests/general_functions/phpcredits.phpt ext/standard/tests/general_functions/phpcredits2.phpt ext/standard/tests/general_functions/phpcredits2.phpt ext/standard/tests/general_functions/phpinfo.phpt ext/standard/tests/general_functions/phpinfo.phpt ext/standard/tests/general_functions/phpinfo2.phpt ext/standard/tests/general_functions/phpinfo2.phpt: file 006.phpt was initially added on branch PHP_5_2. * ext/ftp/tests/005.phpt ext/ftp/tests/bug39583-2.phpt ext/ftp/tests/bug39583.phpt ext/ftp/tests/bug7216-2.phpt ext/ftp/tests/server.inc: MFB * (PHP_5_2) ext/ftp/tests/005.phpt ext/ftp/tests/bug39583-2.phpt ext/ftp/tests/bug39583-2.phpt ext/ftp/tests/bug39583.phpt ext/ftp/tests/bug39583.phpt ext/ftp/tests/bug7216-2.phpt ext/ftp/tests/server.inc: fix tests after Tony's commit and add a test for the bug he fixed 2006-11-24 Antony Dovgal * ext/ftp/tests/004.phpt ext/ftp/tests/004.phpt sapi/cli/tests/011.phpt sapi/cli/tests/011.phpt: fix test * (PHP_5_2) sapi/cli/tests/.cvsignore sapi/cli/tests/001.phpt sapi/cli/tests/002-win32.phpt sapi/cli/tests/002.phpt sapi/cli/tests/003.phpt sapi/cli/tests/004.phpt sapi/cli/tests/005.phpt sapi/cli/tests/006.phpt sapi/cli/tests/007.phpt sapi/cli/tests/008.phpt sapi/cli/tests/009.phpt sapi/cli/tests/010-2.phpt sapi/cli/tests/010.phpt sapi/cli/tests/011.phpt sapi/cli/tests/012.phpt sapi/cli/tests/013.phpt sapi/cli/tests/014.phpt sapi/cli/tests/skipif.inc: add tests for CLI * sapi/cli/tests/.cvsignore sapi/cli/tests/.cvsignore: add .cvsignore * sapi/cli/tests/001.phpt sapi/cli/tests/001.phpt sapi/cli/tests/002-win32.phpt sapi/cli/tests/002-win32.phpt sapi/cli/tests/002.phpt sapi/cli/tests/002.phpt sapi/cli/tests/003.phpt sapi/cli/tests/003.phpt sapi/cli/tests/004.phpt sapi/cli/tests/004.phpt sapi/cli/tests/005.phpt sapi/cli/tests/005.phpt sapi/cli/tests/006.phpt sapi/cli/tests/006.phpt sapi/cli/tests/007.phpt sapi/cli/tests/007.phpt sapi/cli/tests/008.phpt sapi/cli/tests/008.phpt sapi/cli/tests/009.phpt sapi/cli/tests/009.phpt sapi/cli/tests/010-2.phpt sapi/cli/tests/010-2.phpt sapi/cli/tests/010.phpt sapi/cli/tests/010.phpt sapi/cli/tests/011.phpt sapi/cli/tests/011.phpt sapi/cli/tests/012.phpt sapi/cli/tests/012.phpt sapi/cli/tests/013.phpt sapi/cli/tests/013.phpt sapi/cli/tests/014.phpt sapi/cli/tests/014.phpt sapi/cli/tests/skipif.inc sapi/cli/tests/skipif.inc: add tests for CLI * (PHP_4_4) NEWS NEWS ext/ftp/ftp.h ext/ftp/ftp.h: MFH: fix #39583 (ftp_put() does not change transfer mode to ASCII) * ext/ftp/ftp.h: fix #39583 (ftp_put() does not change transfer mode to ASCII) * sapi/cli/php_cli.c: call sapi_deactivate() & friends on error fixes leak with `php-cli -n -c ..` * ZendEngine2/zend.c: initialize CG(literal_type) using ZEND_STR_TYPE macro add CG(literal_type) initialization in non-ZTS mode fixes backticks operator * (PHP_5_2) NEWS: BFN * ext/imap/php_imap.c ext/imap/php_imap.c: fix #39613 (Possible segfault in imap initialization due to missing module dependency) patch by wharmby at uk dot ibm dot com 2006-11-23 Antony Dovgal * ZendEngine2/zend_language_scanner.l ZendEngine2/zend_language_scanner.l: nullify opened_path and filename (when required) fixes invalid reads with `php-cli -F