2006-04-14 Antony Dovgal * ZendEngine2/tests/bug34873.phpt: make it consistent with the other ones * (PHP_5_1) ZendEngine2/tests/bug34873.phpt: make it consistent with the other ones =) * ext/standard/tests/strings/bug36944.phpt: make this test to work on all systems * (PHP_5_1) ext/standard/tests/strings/bug36944.phpt: ok, let's make this test to work on all systems currently it fails at least on Linux PPC and Solaris, probably because of different strncmp/strncasecmp implementations. 2006-04-14 Sara Golemon * (PHP_4_3) ext/standard/file.c ext/standard/file.c ext/standard/file.c: MFH (r-1.436) copy() should not disrespect open_basedir on source file * ext/standard/file.c: MFB (r-1.409.2.6) copy() should not disrespect open_basedir on source file 2006-04-14 Marcus Boerger * (PHP_5_1) ext/simplexml/simplexml.c ext/simplexml/tests/009b.phpt: - MFH Fix properties access to children() result * ext/simplexml/php_simplexml.h ext/simplexml/simplexml.c ext/simplexml/tests/profile12.phpt: - Fix properties access to children() result - Allow access by namespace prefix * ext/simplexml/tests/009b.phpt ext/simplexml/tests/009b.phpt ext/simplexml/tests/profile13.phpt: - Fix properties access to children() result - Allow access by namespace prefix * ext/simplexml/tests/profile12.phpt: - Do not provide ns info in first sxe creation * ext/simplexml/simplexml.c ext/simplexml/tests/profile12.phpt: - Allow access to namespaced root by specifying prefix on creation - Fix access to non namespaced root * run-tests.php: - Prefix summaries with either U or N * ext/simplexml/simplexml.c: - If node no longer exists then there won't be any data 2006-04-14 Antony Dovgal * ext/standard/streamsfuncs.c: MF51: fix #37077 (stream_socket_server() leaks when the port is not allowed) * (PHP_5_1) ext/standard/streamsfuncs.c: fix #37077 (stream_socket_server() leaks when the port is not allowed) 2006-04-13 Antony Dovgal * main/streams/filter.c: fix CS and prevent NULL dereference 2006-04-13 Dmitry Stogov * ZendEngine2/tests/bug36513.phpt ZendEngine2/tests/bug36513.phpt: file bug36513.phpt was initially added on branch PHP_5_1. * (PHP_5_1) NEWS Zend/zend_language_scanner.l ZendEngine2/zend_language_scanner.l ZendEngine2/zend_language_scanner.l ZendEngine2/tests/bug36513.phpt: Fixed bug #36513 (comment will be outputed in last line) 2006-04-13 Antony Dovgal * ext/curl/interface.c ext/curl/multi.c: MF51: fix bug #37061 (curl_exec() doesn't zero-terminate binary strings) - we get the data length from cURL, so it's binary safe. fix leak appearing when re-using curl handle * (PHP_5_1) NEWS ext/curl/interface.c ext/curl/multi.c: fix bug #37061 (curl_exec() doesn't zero-terminate binary strings) - we get the data length from cURL, so it's binary safe. fix leak appearing when re-using curl handle 2006-04-13 Dmitry Stogov * (PHP_5_1) NEWS: Fixed bug #37054 (SoapClient Error Fetching http headers) * (PHP_4_4) NEWS Zend/zend_execute.c: Fixed bug #37046 (foreach breaks static scope) * ZendEngine2/tests/bug37046.phpt ZendEngine2/tests/bug37046.phpt: Fixed test 2006-04-13 Sara Golemon * ext/standard/streamsfuncs.c main/streams/filter.c main/streams/php_stream_filter_api.h: Preserve full name of filter for use in stream_get_meta_data() 2006-04-12 Sara Golemon * ext/standard/http_fopen_wrapper.c main/streams/filter.c main/streams/php_stream_filter_api.h main/streams/streams.c: Allow http:// wrapper to automatically apply correct unicode.from.* filter based on content-type header 2006-04-12 Antony Dovgal * ext/standard/tests/strings/bug36944.phpt ext/standard/tests/strings/bug36944.phpt: fix test title 2006-04-12 Johannes Schlüter * (PHP_5_1) NEWS ext/standard/array.c: - MFH: Fix bug #37060 (Type of retval of Countable::count() is not checked) * ext/standard/array.c: - Fix bug #37060 (Type of retval of Countable::count() is not checked) 2006-04-12 Antony Dovgal * ext/oci8/oci8.c ext/oci8/oci8_statement.c: MF51: fix #37059 (oci_bind_by_name() doesn't support RAW and LONG RAW fields) add tests * (PHP_5_1) NEWS ext/oci8/oci8.c ext/oci8/oci8_statement.c: fix #37059 (oci_bind_by_name() doesn't support RAW and LONG RAW fields) add tests * (PHP_5_1) ext/oci8/oci8.c: oops.. I didn't want to commit this.. * ext/oci8/oci8.c: MF51: correct fix for bug #37055 * (PHP_5_1) ext/oci8/oci8.c: correct fix for bug #37055 * ext/xmlrpc/xmlrpc-epi-php.c: MF51: fix #37057 (xmlrpc_decode() may produce arrays with numeric string keys which are unaccessible) * (PHP_5_1) NEWS ext/xmlrpc/xmlrpc-epi-php.c: fix #37057 (xmlrpc_decode() may produce arrays with numeric strings which are unaccessible) * ext/oci8/oci8.c: MF51: fix #37055 (incorrect reference counting for persistent OCI8 connections) * (PHP_5_1) NEWS ext/oci8/oci8.c: fix #37055 (incorrect reference counting for persistent OCI8 connections) * main/main.c: MF51: fix #37053 (html_errors with internal classes produces wrong links) * (PHP_5_1) NEWS main/main.c: fix #37053 (html_errors with internal classes produces wrong links) 2006-04-12 Dmitry Stogov * ZendEngine2/tests/bug37046.phpt ZendEngine2/tests/bug37046.phpt: file bug37046.phpt was initially added on branch PHP_5_1. * (PHP_5_1) NEWS ZendEngine2/zend_vm_def.h ZendEngine2/zend_vm_def.h ZendEngine2/zend_vm_execute.h ZendEngine2/zend_vm_execute.h ZendEngine2/tests/bug37046.phpt: Fixed bug #37046 (foreach breaks static scope) * (PHP_5_1) NEWS ZendEngine2/zend_ini_parser.y ZendEngine2/zend_ini_parser.y: Fixed bug #37002 (Have to quote literals in INI when concatenating with vars) 2006-04-11 Derick Rethans * (PHP_5_1) NEWS: - MFH: Fixed bug #37017 (strtotime fails before 13:00:00 with some time zones identifiers). (Derick) - MFH: Fixed bug #36988 (mktime freezes on long numbers). (Derick) - MFH: Implemented better error and warning handling that is also used for the date_parse() function. - MFH: Fixed problems with "T" in front of a time string was seen as a time zone string. - MFH: Fixed a problem were 5 and 6 character timezone abbreviations where not correctly parsed. Experimental support (All MFH): - Added the date_parse() function that returns a parsed date/time string including warnings and errors. - Added the timezone_name_from_abbr() function that exposes the guessing mechanism that tries to find a timezone identifier from a timezone abbreviation and GMT offset. 2006-04-11 Jani Taskinen * ext/curl/interface.c ext/gd/php_gd.h main/safe_mode.c main/safe_mode.h: - More safe_mode left-overs. 2006-04-10 Ilia Alshanetsky * ext/standard/tests/file/bug24313.phpt: MFB51: fixed test * (PHP_5_1) ext/standard/tests/file/bug24313.phpt: Fixed test 2006-04-10 Marcus Boerger * ext/simplexml/simplexml.c ext/simplexml/simplexml.c: - Coverity issue 59 * (PHP_5_1) ZendEngine2/zend_vm_def.h ZendEngine2/zend_vm_execute.h: - MFH Iterators from overloaded objects are allowed to not have keys... * ZendEngine2/zend_vm_def.h ZendEngine2/zend_vm_execute.h: - Iterators from overloaded objects are allowed to not have keys... * ZendEngine2/zend_interfaces.c: - Allowing to pass in ce as NULL has its charme, too * ZendEngine2/zend_interfaces.c: - Fix coverity issue 49: ce might be forwarded as NULL without an exception being thrown in case the Zend API is being used wrong (in custom exts for instance). * ext/pgsql/pgsql.c: - Better order for SEGV prevention * ext/pgsql/pgsql.c: - Fix possible SEGV * ext/exif/exif.c: - Fix condition 2006-04-10 Jani Taskinen * INSTALL php.ini-dist php.ini-recommended ext/mbstring/tests/skipif.inc ext/standard/tests/array/bug33940.phpt main/php_variables.c tests/basic/012.phpt: more cleanup (lingering ini settings which do not exist anymore, etc.) * ext/session/php_session.h ext/session/session.c ext/session/tests/007.phpt ext/session/tests/008-php4.2.3.phpt ext/session/tests/008.phpt ext/session/tests/009.phpt ext/session/tests/010.phpt ext/session/tests/011.phpt ext/session/tests/012.phpt ext/session/tests/013.phpt ext/session/tests/014.phpt ext/session/tests/019.phpt ext/session/tests/skipif.inc: - Cleanup * ext/iconv/tests/bug16069.phpt ext/iconv/tests/eucjp2iso2022jp.phpt ext/iconv/tests/eucjp2sjis.phpt ext/iconv/tests/eucjp2utf8.phpt ext/iconv/tests/iconv001.phpt ext/iconv/tests/iconv002.phpt ext/iconv/tests/ob_iconv_handler.phpt ext/iconv/tests/test.inc ext/iconv/tests/translit-failure.phpt ext/iconv/tests/translit-utf8.phpt: cleanup 2006-04-10 Dmitry Stogov * (PHP_5_1) NEWS: Fixed bug #36908 (wsdl default value overrides value in soap request). * ZendEngine2/zend_opcode.c ZendEngine2/zend_opcode.c: Fixed possible crash in interactive mode 2006-04-10 Jani Taskinen * acinclude.m4: fix typo * (PHP_5_1) acinclude.m4 configure.in scripts/phpize.m4: MFH: - Determine the shared/link lib suffixes in one macro. * acinclude.m4 configure.in scripts/phpize.m4: - Determine the shared/link lib suffixes in one macro. * (PHP_5_1) TSRM/tsrm_virtual_cwd.h ext/standard/filestat.c: MFH: - Fixed bug #36909 (ld: Undefined symbols: _lchown) * TSRM/tsrm_virtual_cwd.h ext/standard/filestat.c: - Fixed bug #36909 (ld: Undefined symbols: _lchown) * (PHP_5_1) main/php_compat.h: MFH: - Silence some PCRE compile warnings * main/php_compat.h: - Silence some PCRE compile warnings * NEWS: - Fix NEWS. The empty lines were left on purpose.. * (PHP_5_1) ext/standard/credits_ext.h: update credits * ext/standard/credits_ext.h ext/standard/credits_sapi.h: fix credits * (PHP_5_1) NEWS: Fix NEWS 2006-04-09 Andrei Zmievski * (PHP_5_1) NEWS: Speed up SoapClient/SoapServer constructors by caching WSDL structures in memory. All WSDL files will be cached, unless turned off via an option to the constructor. 2006-04-09 Edin Kadribasic * ext/gettext/config.w32: MFB: Fixed bug #36935 * (PHP_5_1) ext/gettext/config.w32: Fixed bug #36935 2006-04-09 Ilia Alshanetsky * ext/standard/filestat.c: MFB51: Fixed bug #36875 (is_*() functions do not account for open_basedir). * (PHP_5_1) NEWS ext/standard/filestat.c: -** empty log message *** 2006-04-08 Andrei Zmievski * Makefile.global acinclude.m4 configure.in main/build-defs.h.in scripts/phpize.m4: Separate suffixes of shared libraries that we link against and the ones we load with dlopen(). This matters on Mac OS X, for example. 2006-04-07 Andrei Zmievski * ext/pcre/TODO ext/pcre/php_pcre.c: Disallowed numeric named captures. 2006-04-07 Ilia Alshanetsky * (PHP_5_1) NEWS configure.in main/php_version.h: RC3 2006-04-07 Pierre-Alain Joye * ext/sockets/sockets.c: - MFB: revert leak fix, something else went wrong * (PHP_5_1) ext/sockets/sockets.c: - revert last commit, something else went wrong 2006-04-07 Dmitry Stogov * main/php_variables.c main/php_variables.c: Optimization * sapi/cgi/cgi_main.c sapi/cgi/cgi_main.c: CGI anf FastCGI assume $_SERVER and $_ENV have the same values, so we don't need construct the same arrays twich and may just copy it 2006-04-07 Pierre-Alain Joye * ext/sockets/sockets.c: - MFB: fix leak when an error occured in socket_read, free tmpbuf * (PHP_5_1) ext/sockets/sockets.c: - fix leak when an error occured in socket_read, free tmpbuf 2006-04-07 Dmitry Stogov * sapi/cgi/cgi_main.c sapi/cgi/cgi_main.c: Removed unnecessary copying * main/main.c main/main.c: We don't need setup the same time-out two times. * (PHP_5_1) ZendEngine2/zend_hash.c: MFH: - Allowed storing NULL pointers in HashTable - Optimized zend_hash_reverse_apply() * ZendEngine2/zend_hash.c: - Fixed storing NULL pointers in HashTable - Optimized zend_hash_reverse_apply() 2006-04-07 Ilia Alshanetsky * (PHP_5_1) ext/posix/CREDITS: Adjusted credits file so that it appears properly on phpinfo() 2006-04-06 Andrei Zmievski * ext/pcre/TODO: That is not the bug you're looking for. * ext/pcre/TODO: Even more stuff from Friedl. * (PHP_5_1) ext/pcre/TODO: I guess we only need this on HEAD. * ext/pcre/TODO: More stuff from Friedl.. * ZendEngine2/zend_arg_defs.c ZendEngine2/zend_modules.h ext/pcre/TODO ext/pcre/php_pcre.c: MFB * (PHP_5_1) NEWS: -** empty log message *** * (PHP_5_1) ZendEngine2/zend_arg_defs.c ZendEngine2/zend_modules.h ext/pcre/TODO ext/pcre/TODO ext/pcre/php_pcre.c: Fix a bug that would not fill in the fifth argument to preg_replace() properly, if the variable was not declared previously. 2006-04-06 Sara Golemon * ext/standard/uniqid.c: Plug leak which occurs in unicode mode * ext/standard/tests/file/stream_get_line.phpt ext/standard/tests/file/userfilters.phpt ext/standard/tests/file/userstreams.phpt ext/standard/tests/filters/basic.phpt: Silence false positives on test results * ext/standard/tests/file/004.phpt ext/standard/tests/file/bug27508.phpt ext/standard/tests/file/bug27619.phpt ext/standard/tests/file/bug35781.phpt: Silence false positives in test failures * main/streams/streams.c: Do runtime conversions (with an E_NOTICE) on writing unicode data to a binary stream. Take the WTF out of the equation 2006-04-06 Antony Dovgal * (PHP_5_1) NEWS: fix #36981 (SplFileObject->fgets() ignores max_length) 2006-04-06 Sara Golemon * ZendEngine2/zend_API.h: Overload 'duplicate' arg as applied to: add_((next_)?index|assoc)_(ascii|rt)_stringl?(_ex)? and (ZVAL|RETVAL|RETURN)_(ASCII|RT|U)_STRINGL? Duplicate keeps traditional value of '1', additional bit '2' tells unicode mode conversion to automatically free the original string in order to avoid leaks due to conversion on a value otherwise being "given" to the engine. /* Uses s as-is for non-unicode, or frees s after converting to unicode */ { char *s = estrdup("Hello"); ZVAL_RT_STRING(pzv, s, ZSTR_AUTOFREE); } /* Duplicates for non-unicode, or converts (but doesn't free original) */ { char *s = "Hello"; ZVAL_RT_STRING(pzv, s, ZSTR_DUPLICATE); } /* Uses as-is for non-unicode, or converts (but doesn't free original) */ { char *s = "Hello"; zval zv; ZVAL_RT_STRING(&zv, s, 0); /* use zv for some temporary purpose */ /* It's now necessary to manually free this generated value */ if (UG(unicode)) { zval_dtor(&zv); } } 2006-04-06 Ilia Alshanetsky * (PHP_5_1) NEWS ext/standard/file.c: Fixed safe_mode check for source argument of the copy() function. 2006-04-05 Antony Dovgal * (PHP_5_1) Makefile.global: MFH: workaround for problem on Solaris: shell tries to parse "for i in ;" and fails * Makefile.global: workaround for problem on Solaris: shell tries to parse "for i in ;" and fails * (PHP_5_1) NEWS: BFN * ext/oci8/config.w32 ext/oci8/config.w32: add missing defines to .w32 * ext/oci8/config.m4 ext/oci8/oci8_lob.c ext/oci8/php_oci8_int.h: fix #36934 (OCILob->read() doesn't move internal pointer when reading 0's) no support for Unicode CLOBs in Oracle < 10, sorry. * (PHP_5_1) ext/oci8/config.m4 ext/oci8/oci8_lob.c ext/oci8/php_oci8_int.h: fix #36934 (OCILob->read() doesn't move internal pointer when reading 0's) * ext/standard/tests/strings/bug36944.phpt: add test * ext/standard/tests/strings/bug36944.phpt ext/standard/tests/strings/bug36944.phpt: file bug36944.phpt was initially added on branch PHP_5_1. 2006-04-05 Georg Richter * (PHP_5_1) NEWS: fixed bigint conversion errors (windows) * (PHP_5_1) ext/mysqli/mysqli_api.c ext/mysqli/mysqli_prop.c ext/mysqli/php_mysqli.h: fixed bigint conversion on windows platforms 2006-04-05 Antony Dovgal * ZendEngine2/zend_builtin_functions.c: MF51: fix #36944 (strncmp & strncasecmp do not return false on negative string length) * (PHP_5_1) NEWS ZendEngine2/zend_builtin_functions.c: fix #36944 (strncmp & strncasecmp do not return false on negative string length) 2006-04-05 Ilia Alshanetsky * (PHP_5_1) NEWS ext/standard/var.c ext/standard/var.c: Fixed bug #36957 (serialize() does not handle recursion). 2006-04-04 Marcus Boerger * (PHP_5_1) NEWS: - MFH . Fixed bug #36941 (ArrayIterator does not clone itself) . Fixed SEGV when ArrayObject/Iterator use reference to self . Added tests 2006-04-04 Frank M. Kromann * ext/mssql/php_mssql.c ext/mssql/php_mssql.c: MFP51: Fix #33694 invalid sql or timeouts makes it impossible to reuse persistent connections * (PHP_5_1) ext/mssql/php_mssql.c: Fix #33694 invalid sql or timeouts makes it impossible to reuse persistent connections 2006-04-04 Seiji Masugata * ext/mbstring/mbstring.c: fixed commnet typo, and duplicate logic. 2006-04-04 Derick Rethans * ext/standard/php_type.h: - No need to have this one twice here... (Thanks Steph) 2006-04-03 Antony Dovgal * ext/gmp/tests/gmp_nextprime.phpt: add test for gmp_nextprime() * NEWS ext/gmp/gmp.c ext/gmp/php_gmp.h: add gmp_nextprime() function patch by ants dot aasma at gmail dot com 2006-04-03 Seiji Masugata * ext/mbstring/mbstring.c ext/mbstring/mbstring.h: added mb_stristr( ), mb_strrichr( ). 2006-04-03 Antony Dovgal * (PHP_5_1) ext/simplexml/simplexml.c: (as was agreed with Ilia) 2006-04-03 Ilia Alshanetsky * (PHP_4_4) ext/standard/basic_functions.c: MFH: Fixed an unlikely, but possible memory leak. * ext/standard/basic_functions.c: MFB51: Fixed an unlikely, but possible memory leak. * (PHP_5_1) ext/standard/basic_functions.c: Fixed an unlikely, but possible memory leak. 2006-04-03 Seiji Masugata * (PHP_4_4) ext/mbstring/mbstring.c ext/mbstring/mbstring.h: added mb_check_encoding( ). detect possible invalid encoding attack(avoids a security issue). 2006-04-03 Antony Dovgal * ext/ftp/ftp.c ext/ftp/ftp.c ext/mhash/mhash.c ext/mhash/mhash.c ext/standard/basic_functions.c ext/standard/basic_functions.c ext/standard/streamsfuncs.c ext/standard/streamsfuncs.c ext/standard/string.c ext/standard/string.c: fix spelling in error messages: greater/less thEn -> greater/less thAn 2006-04-03 Sara Golemon * ext/standard/tests/network/tcp4loop.phpt ext/standard/tests/network/tcp6loop.phpt ext/standard/tests/network/udgloop.phpt ext/standard/tests/network/udp4loop.phpt ext/standard/tests/network/udp6loop.phpt ext/standard/tests/network/unixloop.phpt: Update tests for working with unicode 2006-04-03 Georg Richter * (PHP_5_1) ext/mysqli/mysqli_prop.c: fixed stmt property container and required status for error properties 2006-04-02 Ilia Alshanetsky * (PHP_4_4) main/logos.h main/logos.h sapi/apache/mod_php4.c sapi/apache/mod_php5.c: MFH: Removed extra space in the Content-Type header for logos Simplified stderr error reporting in apache sapi. * main/logos.h sapi/apache/mod_php5.c: Removed extra space in the Content-Type header for logos Simplified stderr error reporting in apache sapi. 2006-04-02 Sara Golemon * ext/zlib/tests/gzfilegzreadfile.phpt ext/zlib/tests/gzreadgzwrite.phpt ext/zlib/tests/gzreadgzwriteplain.phpt ext/zlib/tests/zlib_filter_deflate.phpt ext/zlib/tests/zlib_filter_inflate.phpt: Silence false positive test failures * ext/bz2/tests/bz2_filter_compress.phpt ext/bz2/tests/bz2_filter_decompress.phpt ext/bz2/tests/with_files.phpt ext/bz2/tests/with_strings.phpt: Make some tests pass. compression is just a binary thing. Write unicode and suffer my wrath! 2006-04-02 Marcus Boerger * ext/dba/dba.c: - Fix warning 2006-04-02 Georg Richter * (PHP_5_1) ext/mysqli/mysqli.c: Added additional information for compiled header files. 2006-04-01 Sara Golemon * ext/standard/file.c: Update filename handling and mark various functions for unicode safety 2006-03-31 Sara Golemon * ZendEngine2/zend.c ZendEngine2/zend_globals.h ext/standard/file.c main/php_streams.h main/streams/streams.c: Add API hooks and unicode.filesystem_encoding for handling unicode conversions of filename entries. Normal path conversions will simply use this converter, Certain other protocols (such as http) which specify a required character set (utf8), may override the conversion by defining a path_encode() and/or path_decode() wrapper ops method. 2006-03-31 Antony Dovgal * ext/standard/info.c: MF51: fix compile failure with old GCC (see bug #36931) * (PHP_5_1) ext/standard/info.c: fix compile failure with old GCC (see bug #36931) 2006-03-30 Marcus Boerger * ext/wddx/wddx.c: - Fix build 2006-03-30 Antony Dovgal * ZendEngine2/zend.c ZendEngine2/zend.h: MF51: fix compilation on AIX * (PHP_5_1) ZendEngine2/zend.c ZendEngine2/zend.h: fix compilation on AIX * (PHP_5_1) ext/standard/user_filters.c: nuke compile warning * ext/mysqli/tests/014.phpt ext/mysqli/tests/015.phpt ext/mysqli/tests/045.phpt: MF51: fix tests * (PHP_5_1) ext/mysqli/tests/014.phpt ext/mysqli/tests/015.phpt ext/mysqli/tests/045.phpt: fix tests * ext/standard/info.c: fix TSRM build * (PHP_5_1) ext/standard/info.c: fix build: there is no TSRMLS_CC in this function 2006-03-30 Ilia Alshanetsky * (PHP_5_1) configure.in main/php_version.h: Back to dev * (PHP_5_1) NEWS configure.in main/php_version.h: Go with RC2 * ext/standard/info.c: MFB51: Fixed XSS inside phpinfo() with long inputs. * (PHP_5_1) NEWS ext/standard/info.c: Fixed XSS inside phpinfo() with long inputs. 2006-03-30 Seiji Masugata * ext/mbstring/mbstring.c ext/mbstring/mbstring.h: added mb_stripos( ), mb_strripos( ). 2006-03-30 Dmitry Stogov * README.UPDATING_TO_PHP6: typo 2006-03-30 Antony Dovgal * ext/mysqli/mysqli.c: MF51: fix #36922 (missing MYSQLI_REPORT_STRICT constant in userspace) * (PHP_5_1) ext/mysqli/mysqli.c: fix #36922 (missing MYSQLI_REPORT_STRICT constant in userspace) 2006-03-30 Dmitry Stogov * ZendEngine2/zend_objects.c: Unicode support * README.UPDATING_TO_PHP6: Describe registr_long_arrays, ze1_compatibility_mode, dl(), E_ALL/E_STRICT 2006-03-30 Sara Golemon * ext/standard/file.c main/php_streams.h main/streams/streams.c: Make php_stream_copy_to_mem() unicode aware and update userspace function file_get_contents(). Note: fgc()'s second parameter (use_include_path) has been changed to be a bitmask "flags" parameter instead. For the most commonly used values (TRUE, 1) this will continue functioning as expected since the value of FILE_USE_INCLUDE_PATH is (coincidentally) 1. The impact to other values should be noted in the migration6 guide. This change makes it possible to allow fgc() to return binary file contents (default) or unicode transcoded contents (using FILE_TEXT flag). 2006-03-29 Sara Golemon * ext/standard/file.c main/streams/streams.c: Update php_stream_passthru() to handle unicode data. This updates userspace functions fpassthru() and readfile() UG(output_encoding) is used by php_stream_passthru() to translate unicode stream contents back to an outputable character set. Note: readfile()'s second parameter (use_include_path) has been changed to be a bitmask "flags" parameter instead. For the most commonly used values (TRUE, 1) this will continue functioning as expected since the value of FILE_USE_INCLUDE_PATH is (coincidentally) 1. The impact to other values should be noted in the migration6 guide. This change makes it possible to allow readfile() to output binary file contents (default) or unicode transcoded contents (using FILE_TEXT flag). 2006-03-29 Antony Dovgal * ext/mysqli/mysqli.c ext/mysqli/mysqli.c: fix typo 2006-03-29 Seiji Masugata * ext/mbstring/mbstring.c ext/mbstring/mbstring.h: added mb_strrchr( ). 2006-03-29 Antony Dovgal * ZendEngine2/zend_objects.c ZendEngine2/zend_objects.h ext/com_dotnet/com_persist.c ext/dom/php_dom.c ext/mysqli/mysqli.c ext/simplexml/simplexml.c ext/sqlite/sqlite.c ext/xsl/php_xsl.c: MF51: fix bug #36898 (__set() leaks in classes extending internal ones) Added: ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC) ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC) * (PHP_5_1) NEWS ZendEngine2/zend_objects.c ZendEngine2/zend_objects.h ext/com_dotnet/com_persist.c ext/dom/php_dom.c ext/mysqli/mysqli.c ext/simplexml/simplexml.c ext/sqlite/sqlite.c ext/xsl/php_xsl.c: fix bug #36898 (__set() leaks in classes extending internal ones) Added: ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC) ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC) to initialize and destroy zend_object structs 2006-03-29 Andrei Zmievski * ext/standard/string.c: Bug! 2006-03-29 Sara Golemon * configure.in: Ooops, missed a file * ext/standard/basic_functions.c ext/standard/file.c ext/standard/streamsfuncs.c ext/standard/streamsfuncs.h main/main.c main/php_streams.h main/streams/filter.c main/streams/php_stream_filter_api.h main/streams/streams.c main/streams/unicode_filter.c: Another (and hopefully last) major streams commit. This moves unicode conversion to the filter layer (rather than at the lower streams layer) unicode_filter.c has been moved from ext/unicode to main/streams as it's an integral part of the streams unicode conversion process. There are now three ways to set encoding on a stream: (1) By context $ctx = stream_context_create(NULL,array('encoding'=>'latin1')); $fp = fopen('somefile', 'r+t', false, $ctx); (2) By stream_encoding() $fp = fopen('somefile', 'r+'); stream_encoding($fp, 'latin1'); (3) By filter $fp = fopen('somefile', 'r+'); stream_filter_append($fp, 'unicode.from.latin1', STREAM_FILTER_READ); stream_filter_append($fp, 'unicode.to.latin1', STREAM_FILTER_WRITE); Note: Methods 1 and 2 are convenience wrappers around method 3. 2006-03-29 Yasuo Ohgaki * ext/pgsql/pgsql.c: restore E_WARNING in correct place 2006-03-28 Antony Dovgal * ZendEngine2/zend_objects_API.c: initialize bucket #0 with nulls * (PHP_5_1) ZendEngine2/zend_objects_API.c: initialize bucket #0 with nulls (normally it shouldn't be used at all, but if it is - we don't want any memory issues, do we?) * ZendEngine2/zend_builtin_functions.c: MF51: fix #36897 (debug_print_backtrace() doesn't return void but array(0) {}) * (PHP_5_1) ZendEngine2/zend_builtin_functions.c: fix #36897 (debug_print_backtrace() doesn't return void but array(0) {}) 2006-03-28 Seiji Masugata * ext/mbstring/mbstring.c ext/mbstring/mbstring.h: added mb_strstr( ). 2006-03-28 Ilia Alshanetsky * (PHP_5_1) NEWS ext/standard/user_filters.c: Fixed bug #36886 (User filters can leak buckets in some situations). 2006-03-28 Antony Dovgal * (PHP_4_4) ext/standard/file.c: fix build and #36887 * ext/oci8/oci8_interface.c: MF51: fix #36851 (Documentation and code discrepancies for NULL data) * (PHP_5_1) NEWS ext/oci8/oci8_interface.c: fix #36851 (Documentation and code discrepancies for NULL data) 2006-03-28 Andrei Zmievski * ZendEngine2/zend_operators.c: Note 2006-03-28 Yasuo Ohgaki * (PHP_5_1) ext/pgsql/pgsql.c: reenable pg_execute E_WARNING 2006-03-27 Ilia Alshanetsky * (PHP_4_4) ext/standard/file.c: MFH: Check 2nd parameter of tempnam() against path components. * ext/standard/file.c: MFB51: Check 2nd parameter of tempnam() against path components. * (PHP_5_1) NEWS ext/standard/file.c: Check 2nd parameter of tempnam() against path components. 2006-03-27 Andrei Zmievski * ext/standard/string.c: Fix UErrorCode check. * ext/standard/var.c: Typo. 2006-03-27 Antony Dovgal * ZendEngine2/zend.c: MF51: fix #36878 (error messages are printed even though an exception has been thrown) * (PHP_5_1) NEWS ZendEngine2/zend.c: fix #36878 (error messages are printed even though an exception has been thrown) 2006-03-27 Andrei Zmievski * ext/standard/var.c: Make a UTODO note. * ext/standard/var.c: Proto updates. * unicode-todo.txt: -** empty log message *** * ZendEngine2/zend_unicode.c: Add UTODO. * ZendEngine2/zend_compile.c: Mark with UTODO instead of FIXME. 2006-03-27 Seiji Masugata * ext/mbstring/mbstring.c ext/mbstring/mbstring.h: added mb_list_mime_names( ). 2006-03-27 Dmitry Stogov * ext/standard/tests/strings/strtr3.phpt: Test for strtr() with non-ascii encoding * ZendEngine2/tests/bug30791.phpt ext/session/tests/003.phpt ext/session/tests/009.phpt ext/simplexml/tests/033.phpt tests/classes/bug26737.phpt: Fixed test * ext/standard/incomplete_class.c ext/standard/php_incomplete_class.h ext/standard/var.c ext/standard/var_unserializer.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re ext/standard/var_unserializer.re ext/standard/tests/serialize/001.phpt ext/standard/tests/serialize/002.phpt ext/standard/tests/serialize/005.phpt ext/standard/tests/serialize/006.phpt ext/standard/tests/serialize/bug14293.phpt ext/standard/tests/serialize/bug21957.phpt ext/standard/tests/serialize/bug26762.phpt ext/standard/tests/serialize/bug27469.phpt ext/standard/tests/serialize/bug28325.phpt ext/standard/tests/serialize/bug31402.phpt: Unicode support * ext/standard/tests/strings/strtr.phpt: Fixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed test * ZendEngine2/zend_compile.c: Fixed bug during function/class declaration in unicode mode * tests/classes/serialize_001.phpt: Fixed test file (test still fail) 2006-03-27 Antony Dovgal * main/output.c: MF51: fix #36869 (memory leak in output buffering when using chunked output) * (PHP_5_1) NEWS main/output.c: fix #36869 (memory leak in output buffering when using chunked output) 2006-03-27 Dmitry Stogov * ZendEngine2/zend_compile.c ZendEngine2/zend_compile.c: Fixed meory leak in case of unknown pragma * NEWS ZendEngine2/zend_unicode.c: Better but incomplete fix for bug #36840 * ZendEngine2/zend_exceptions.c ZendEngine2/zend_unicode.c ZendEngine2/zend_unicode.h ext/standard/string.c: Fixed ZTS build 2006-03-27 Andrei Zmievski * acinclude.m4 acinclude.m4: MFB * (PHP_5_1) acinclude.m4: On Mac OSX, our extensions are actually "bundles" and should not have .dylib extension. Read this: http://www.sm.luth.se/~alapaa/file_fetch/unixcdbookshelf/mac/ch05_03.htm * ZendEngine2/zend_exceptions.c: Fix a case where we could have an encoding conversion exception thrown while building exception trace args! * ZendEngine2/zend_exceptions.c: Use (unsigned char) to make sure that only the control chars are replaced with '?'; * ZendEngine2/zend_unicode.c: Skip BOM for UTF-16/32 converters when setting subst char. 2006-03-27 Yasuo Ohgaki * ext/pgsql/pgsql.c ext/pgsql/pgsql.c: remove pg_execute() E_WARNING error when query plan is not defined 2006-03-27 Andrei Zmievski * ZendEngine2/zend_API.c: Some functions may want to accept only Unicode or binary strings, without having auto-conversion from the other string type. Add 'U' and 'S' specifiers for this. Also, remove traces of 'native' strings. 2006-03-26 Andrei Zmievski * unicode-todo.txt unicode-todo.txt: -** empty log message *** 2006-03-26 Andrey Hristov * (PHP_5_1) ext/mysqli/mysqli_api.c: kill the left unused variable * (PHP_5_1) ext/mysqli/mysqli_api.c: remove unnecessary memcpy, cast directly 2006-03-26 Ilia Alshanetsky * (PHP_4_4) NEWS ext/standard/http_fopen_wrapper.c: MFH: Fixed bug #36857 (Added support for partial content fetching to the HTTP streams wrapper). * ext/standard/http_fopen_wrapper.c: MFB51: Fixed bug #36857 (Added support for partial content fetching to the HTTP streams wrapper). * (PHP_5_1) NEWS ext/standard/http_fopen_wrapper.c: Fixed bug #36857 (Added support for partial content fetching to the HTTP streams wrapper). 2006-03-26 Derick Rethans * ext/standard/array.c ext/standard/php_array.h: - Implemented basic collation support. For some reason "new Collator" gives segfaults when the object's collation resource is used. - The following example shows what is implemented: sort($strings) as $string) { echo $string, "\n"; } echo $c->getAttribute(Collator::FRENCH_COLLATION) == Collator::ON ? "With" : "Without", " french accent sorting order\n"; echo "\nFrench with options:\n"; $c = collator_create( "fr" ); $c->setAttribute(Collator::CASE_FIRST, Collator::UPPER_FIRST); $c->setAttribute(Collator::CASE_LEVEL, Collator::ON); $c->setStrength(Collator::SECONDARY); foreach($c->sort($strings) as $string) { echo $string, "\n"; } echo $c->getAttribute(Collator::FRENCH_COLLATION) == Collator::ON ? "With" : "Without", " french accent sorting order\n"; ?> 2006-03-26 Andrei Zmievski * ZendEngine2/zend.c ZendEngine2/zend_globals.h ZendEngine2/zend_operators.c ZendEngine2/zend_unicode.c ZendEngine2/zend_unicode.h main/main.c main/streams/filter.c main/streams/streams.c: Implement to-Unicode conversion error behavior. Note the adjusted APIs. 2006-03-26 Sara Golemon * NEWS ext/standard/streamsfuncs.c: Expand stream_context_create() to allow specifying params as well as options. Ignore the internal name change of the first arg. The first arg is still for options, the second arg is for actual params. 2006-03-26 Seiji Masugata * ext/mbstring/mbstring.c ext/mbstring/mbstring.c: fixed compiler warning. 2006-03-26 Derick Rethans * ext/standard/string.c ext/standard/tests/strings/strtotitle.phpt ext/standard/tests/strings/strtr2.phpt: - Commit intermediate work so that I can hack on it on some plane. 2006-03-26 Andrei Zmievski * ZendEngine2/zend.c ZendEngine2/zend_constants.c ZendEngine2/zend_globals.h ZendEngine2/zend_unicode.c ZendEngine2/zend_unicode.h main/main.c main/streams/filter.c main/streams/streams.c: - Remove unicode.from_error_mode and unicode.from_subst_char from INI settings. * Add unicode_set_error_mode() and unicode_set_subst_char() functions to manipulate these global settings. 2006-03-26 Antony Dovgal * ext/dom/php_dom.c: MF51: fix #36859 (DOMElement crashes when calling __construct when clone'ing) * (PHP_5_1) NEWS ext/dom/php_dom.c: fix #36859 (DOMElement crashes when calling __construct when clone'ing) 2006-03-25 Sara Golemon * main/streams/streams.c: Handle converter instantiation errors properly 2006-03-24 Sara Golemon * ext/standard/streamsfuncs.c: Allow bidirectional encoding option via single context param * ext/standard/streamsfuncs.c: Fix stream_get_line(): Checking type isn't nearly as important as checking nullness... * ext/standard/file.c: Update fgetss() for unicode 2006-03-24 Andrei Zmievski * main/streams/filter.c: This is probably not a test.. 2006-03-24 Sara Golemon * main/streams/filter.c main/streams/streams.c: Hook into new unicode conversion error handling API * ext/standard/streamsfuncs.c main/php_streams.h main/streams/streams.c: Add php_stream_get_record_unicde() API call. Update stream_get_line() userspace function to handle unicode streams. 2006-03-24 Andrei Zmievski * ZendEngine2/zend_unicode.c: Hey! Don't remove vim modeline completely! :) 2006-03-24 Georg Richter * ext/mysqli/tests/bug36745.phpt ext/mysqli/tests/bug36745.phpt: file bug36745.phpt was initially added on branch PHP_5_1. * (PHP_5_1) NEWS ext/mysqli/mysqli.c: fix and testcase for bug #36745 2006-03-24 Antony Dovgal * (PHP_5_1) ext/simplexml/tests/032.phpt ext/simplexml/tests/033.phpt: add new tests * ext/simplexml/tests/032.phpt ext/simplexml/tests/032.phpt ext/simplexml/tests/033.phpt ext/simplexml/tests/033.phpt: add new tests 2006-03-24 Georg Richter * (PHP_5_1) ext/mysqli/tests/017.phpt ext/mysqli/tests/049.phpt ext/mysqli/tests/bug34810.phpt: fixed minor problems (thx to tony) 2006-03-24 Antony Dovgal * ZendEngine2/zend_unicode.c: whitespaces -> tabs no other changes done 2006-03-24 Dmitry Stogov * NEWS ZendEngine2/zend_unicode.c: Fixed bug #36840 (Memory leak if cast operator throws an exception that is caught) 2006-03-24 Georg Richter * (PHP_5_1) ext/mysqli/mysqli.c ext/mysqli/mysqli_api.c ext/mysqli/mysqli_driver.c ext/mysqli/mysqli_nonapi.c ext/mysqli/mysqli_prop.c ext/mysqli/mysqli_repl.c ext/mysqli/mysqli_warning.c ext/mysqli/php_mysqli.h ext/mysqli/tests/002.phpt ext/mysqli/tests/014.phpt ext/mysqli/tests/bug34810.phpt ext/mysqli/tests/bug36802.phpt ext/mysqli/tests/bug36802.phpt ext/mysqli/tests/connect.inc: Fix for bug #36802 (server crashes with invalid/not opened connections) Added status to mysqli_resource: MYSQLI_STATUS_UNKNOWN MYSQLI_STATUS_CLEARED (for future use) MYSQLI_STATUS_INITIALIZED (after mysqli_init and mysqli_stmt_init) MYSQLI_STATUS_VALID (for valid objects) removed valid flag changed MYSQLI_FETCH_RESOURCE added last parameter __check which specifies the status 2006-03-24 Dmitry Stogov * (PHP_5_1) NEWS: Fixed SoapFault::getMessage() 2006-03-24 Andrei Zmievski * ZendEngine2/zend_default_classes.c ZendEngine2/zend_operators.c ZendEngine2/zend_unicode.c ZendEngine2/zend_unicode.h: Support warning/exceptions flag for conversion errors. * main/SAPI.c: UTODO note 2006-03-24 Sara Golemon * main/streams/streams.c: Add some error checking when stream converters are instantiated. Use the global conversion error handlers for output conversion (for now) We may want to make this customizable on a per-stream basis via context param later on... 2006-03-23 Andrei Zmievski * ZendEngine2/zend.c ZendEngine2/zend_constants.c ZendEngine2/zend_globals.h ZendEngine2/zend_unicode.c ZendEngine2/zend_unicode.h: Update conversion error behavior and add some new modes. * ZendEngine2/zend_language_parser.y ZendEngine2/zend_language_scanner.l: Add (binary) cast operator. * ZendEngine2/zend_operators.c: Allow conversion between binary/Unicode strings (based on runtime_encoding setting). 2006-03-23 Seiji Masugata * ext/mbstring/mbstring.c ext/mbstring/mbstring.h: added mb_list_encodings_alias_names( ). 2006-03-23 Ilia Alshanetsky * ext/standard/credits.c ext/standard/credits_ext.h: MFB51: Added myself to PDO and PDO_MySQL credits Added Wez to PDO_MySQL credits Added Tony to Q&A team credits Regenerated the credits file * (PHP_5_1) ext/standard/credits.c ext/standard/credits_ext.h: Added myself to PDO and PDO_MySQL credits Added Wez to PDO_MySQL credits Added Tony to Q&A team credits Regenerated the credits file 2006-03-23 Marcus Boerger * (PHP_5_1) ZendEngine2/zend_API.c: - Initialized callable_name if present * ZendEngine2/zend_API.c: - Initialize callable_name if requested 2006-03-23 Dmitry Stogov * sapi/cgi/cgi_main.c: MTH: Allowed '-b' with UNIX sockets * (PHP_5_1) sapi/cgi/cgi_main.c: Cleanup * (PHP_5_1) sapi/cgi/cgi_main.c: Allowed '-b' with UNIX sockets: -b : -b -b 2006-03-23 Marcus Boerger * (PHP_4_4) ext/standard/Makefile.frag: - Provide complete rule (to have relative #line info)wq 2006-03-23 Antony Dovgal * ZendEngine2/zend_compile.c ZendEngine2/zend_compile.h: implement correct fix for segfault on 64bit platform 2006-03-23 Seiji Masugata * (PHP_4_4) ext/mbstring/mbstring.c ext/mbstring/mbstring.h: revert.(See http://news.php.net/php.cvs/37387) 2006-03-22 Antony Dovgal * ext/standard/array.c: MF51: prevent segfault when exception is thrown from Countable::count() * (PHP_5_1) ext/standard/array.c: prevent segfault when exception is thrown from Countable::count() * (PHP_5_1) NEWS: fix #36825 (Exceptions thrown in ArrayObject::offsetGet cause segfault) fix similar issue in offsetExists() remove redundant semicolons * ext/exif/tests/exif006.phpt: no magic_quotes anymore * ZendEngine2/zend_compile.c: don't segfault on 64bit platforms * (PHP_5_1) ext/standard/tests/math/bug21523.phpt: MFH: use set_time_limit(), this test takes forever on AIX * ext/standard/tests/math/bug21523.phpt: use set_time_limit(), this test takes forever on AIX 2006-03-22 Ilia Alshanetsky * ext/pgsql/pgsql.c: Simplify and optimize code. 2006-03-22 Derick Rethans * ext/standard/basic_functions.c ext/standard/php_string.h ext/standard/string.c: - Moved strtotitle to ext/standard and implemented the fallback case to non-unicode with ucwords. There is also an implementation for unicode ucwords but that returns different results then strtotitle as it uppercases the first character of every word, and doesn't *titlecase* a word. The test case shows that. 2006-03-22 Antony Dovgal * ext/oci8/oci8.c: MF51: fix #36820 (Privileged connection with an Oracle password file fails) * (PHP_5_1) NEWS ext/oci8/oci8.c: fix #36820 (Privileged connection with an Oracle password file fails) 2006-03-22 Stefan Esser * README.UPDATING_TO_PHP6: Fix the bullshit register_globals emulation 1) S is not _SESSION but _SERVER 2) EXTR_OVERWRITE is evil 2006-03-21 Sara Golemon * main/streams/streams.c: Allow grow_mode && !bufstart (original assertion logic) 2006-03-21 Marcus Boerger * (PHP_5_1) Makefile.gcov: MFH: - Drop --no-prefix as disables --prefix which we do for http://gcov.php.net * Makefile.gcov: - Drop --no-prefix as disables --prefix which we do for http://gcov.php.net 2006-03-21 Antony Dovgal * ext/oci8/oci8_interface.c ext/oci8/oci8_interface.c: change oci_field_type() to return VARCHAR2 instead of VARCHAR (fixes feature request #36800) 2006-03-21 Ilia Alshanetsky * ext/mysqli/mysqli_nonapi.c: MFB51: Fixed bug #36802 (mysqli_set_charset() crash with a non-open connection). * (PHP_5_1) NEWS ext/mysqli/mysqli_nonapi.c: Fixed bug #36802 (mysqli_set_charset() crash with a non-open connection). 2006-03-21 Antony Dovgal * ext/oci8/oci8_lob.c ext/oci8/oci8_lob.c: reimplement php_oci_lob_read() and fix PECL bug #5995 now the function dosn't try to read data by blocks, as this is nearly impossible to do with Unicode and regular LOBs in the same time * main/main.c: fix spelling 2006-03-21 Dmitry Stogov * (PHP_5_1) NEWS: Fixed bug #36721 (The SoapServer is not able to send a header that it didn't receive) * (PHP_5_1) NEWS main/main.c main/main.c: Fixed bug #36809 (__FILE__ behavior changed) 2006-03-21 Rui Hirokawa * ext/mbstring/mbstring.c ext/mbstring/mbstring.h: added mb_check_encoding() to detect possible invalid encoding attack. 2006-03-21 Dmitry Stogov * (PHP_5_1) NEWS: Fixed bug #36749 (SOAP: 'Error Fetching http body' when using HTTP Proxy) 2006-03-21 Rui Hirokawa * ext/mbstring/mbstring.c: changed a option name based on PHP naming convension. * ext/mbstring/mbstring.c ext/mbstring/mbstring.h: MF PHP_5_1 * (PHP_5_1) ext/mbstring/mbstring.c: -** empty log message *** * (PHP_5_1) ext/mbstring/mbstring.c ext/mbstring/mbstring.h: 2006-03-21 Ilia Alshanetsky * ext/standard/syslog.c: MFB51: Fixed bug #36689 (Removed arbitrary limit on the length of syslog messages). * (PHP_5_1) NEWS ext/standard/syslog.c: Fixed bug #36689 (Removed arbitrary limit on the length of syslog messages). 2006-03-20 Antony Dovgal * ext/standard/basic_functions.c ext/standard/basic_functions.c: shutdown syslog module before freeing basic_globals * ext/standard/basic_functions.c ext/standard/php_ext_syslog.h ext/standard/syslog.c: MF51: fix #36808 (syslog ident becomes garbage between requests) * (PHP_5_1) ext/standard/basic_functions.c: .. and add missing #ifdef * (PHP_5_1) ext/standard/basic_functions.c: fix wrong mshutdown func params * (PHP_5_1) NEWS ext/standard/basic_functions.c ext/standard/php_ext_syslog.h ext/standard/syslog.c: fix #36808 (syslog ident becomes garbage between requests) * (PHP_5_1) ext/standard/tests/file/userstreams.phpt: MFH: fix #36741 (userstreams testcase have off-by-one error on fseek()) * ext/standard/tests/file/userstreams.phpt: fix #36741 (userstreams testcase have off-by-one error on fseek()) * ext/standard/filters.c: don't leak memory even though the code is not stable yet 2006-03-20 Dmitry Stogov * ZendEngine2/zend_compile.c ZendEngine2/zend_compile.c: Removed unreachable code 2006-03-20 Antony Dovgal * ext/standard/ftp_fopen_wrapper.c: fix buffer overrun 2006-03-20 Dmitry Stogov * main/php_variables.c tests/basic/011.phpt: Fixed register_argc_argv behavior. Now it behave in the same way as before in combinations with variables_order and auto_globals_jit. $argc and $argv global variables are registered only in CLI mode and under $_SERVER[] in other case. (This is done because register_globals was removed and assumed - off). * (PHP_5_1) main/php_variables.c: Fixed register_argc_argv behavior. Now it behave in the same way as before in all combinations with register_globals, register_long_arrays, variables_order and auto_globals_jit. 2006-03-19 Antony Dovgal * main/network.c: MFB: first check stream for NULL, then dereference * (PHP_5_1) main/network.c: first check stream for NULL, then dereference * ext/standard/array.c: make the code a bit cleaner - no need for two different checks that are doing effectively the same 2006-03-19 Michael Wallner * (PHP_5_1) NEWS: - add comitters name * (PHP_5_1) NEWS: - Fixed Apache2 SAPIs header handler modifying header strings. * sapi/apache2filter/sapi_apache2.c sapi/apache2handler/sapi_apache2.c: MFB: fix php_apache_sapi_header_handler() modifying sapi_header * (PHP_5_1) sapi/apache2filter/sapi_apache2.c sapi/apache2handler/sapi_apache2.c: - fix php_apache_sapi_header_handler() modifying sapi_header 2006-03-19 Pierre-Alain Joye * NEWS: - typos 2006-03-18 Antony Dovgal * ext/oci8/oci8_statement.c: MFB: Added support for BINARY_DOUBLE and BINARY_FLOAT to PDO_OCI and OCI8 (also fixes bug #36764) * (PHP_5_1) NEWS ext/oci8/oci8_statement.c: Added support for BINARY_DOUBLE and BINARY_FLOAT to PDO_OCI and OCI8 (also fixes bug #36764) 2006-03-18 Marcus Boerger * (PHP_5_1) main/streams/memory.c: - MFH Fix seek/eof issue in temp streams * main/streams/memory.c: - Fix seek/eof issue in temp streams * main/streams/streams.c: - Fix issue in _php_stream_get_line(): Allow maxchars == 0 as macro php_stream_get_line() does 2006-03-18 Rob Richards * (PHP_4_4) NEWS: fix news (re-order) * ext/dom/php_dom.c ext/dom/tests/bug36756.phpt: MFB51: Fixed bug #36756 (DOMDocument::removeChild corrupts node) add test * (PHP_5_1) ext/dom/php_dom.c ext/dom/tests/bug36756.phpt ext/dom/tests/bug36756.phpt: Fixed bug #36756 (DOMDocument::removeChild corrupts node) add test * (PHP_4_4) NEWS NEWS: BFN * (PHP_4_4) ext/domxml/php_domxml.c: Fixed bug #36776 (node_list_wrapper_dtor segfault) - no optimizations. this extension is VERY touchy 2006-03-18 Seiji Masugata * (PHP_4_4) ext/mbstring/mbstring.c: fixed doesn't return value when omitting arguments in mb_get_info( ). 2006-03-17 Marcus Boerger * ext/standard/string.c: - Fix TSRM 2006-03-17 Andrei Zmievski * ext/standard/type.c: Make is_string() return TRUE for both Unicode and binary strings. * ext/standard/file.c ext/standard/image.c main/streams/streams.c sapi/cli/php_cli.c: Fix compiler errors by using NULL_ZSTR where zstr is expected. * ext/standard/string.c: Calculate the size of the tmp[] buffer directly at compile time. 2006-03-17 Antony Dovgal * (PHP_5_1) NEWS: fix #36727 (segfault in pdo_pgsql bindValue() when no parameters are defined) 2006-03-17 Dmitry Stogov * main/php_variables.c tests/basic/011.phpt tests/basic/bug29971.phpt: Fixed register_argc_argv 2006-03-17 Derick Rethans * ext/standard/basic_functions.c ext/standard/php_type.h: - Actually make this is_binary() too. * ext/standard/string.c ext/standard/type.c ext/standard/tests/strings/strtr2.phpt ext/standard/tests/strings/ucfirst.phpt: - Fixed bug in ucfirst() implementation. If the tmp_len = 0 then it will not write the uppercased character to the buffer, but only returns the length of the uppercased letter as per http://icu.sourceforge.net/apiref/icu4c/ustring_8h.html#a50. - Updated is_string(): If Unicode semantics is turned on, return "true" for Unicode strings only. If Unicode semantics is turned off, return "true" for native strings only. - Added is_binary() function that returns "true" for native strings only. - Added first implementation of upgraded strtr function. It works except if combining sequences or surrogates are used in the non-array method of calling this function. 2006-03-17 Dmitry Stogov * main/SAPI.h main/main.c main/php_main.h sapi/cgi/cgi_main.c sapi/cli/php_cli.c sapi/embed/php_embed.c: Unicode support for dl() patch. * main/fopen_wrappers.c main/fopen_wrappers.c: Eliminated unnecessary getcwd() syscall 2006-03-17 Antony Dovgal * (PHP_5_1) NEWS: fix #36743 (In a class extending XMLReader array properties are not writable) 2006-03-17 Dmitry Stogov * sapi/cgi/cgi_main.c sapi/cgi/cgi_main.c: Optimized FastCGI SAPI check. Check for ini options only once. * (PHP_5_1) NEWS main/php_variables.c main/php_variables.c: Allowed 'auto_globals_jit' work together with 'register_argc_argv' * ZendEngine2/zend_execute_API.c: FIX: For some reason SIGSEGV handler wasn't set, but was restoring. Now all SIGS EGV related code is commented. * (PHP_5_1) ZendEngine2/zend_execute_API.c: FIX: For some reason SIGSEGV handler wasn't set, but was restoring. Now all SIGSEGV related code is commented. * ZendEngine2/zend.c ZendEngine2/zend.c ZendEngine2/zend_API.c ZendEngine2/zend_API.c: Optimization of module unloading (temporary modules can be only in the end) 2006-03-16 Dmitry Stogov * NEWS ext/standard/basic_functions.c ext/standard/dl.c ext/standard/dl.h main/main.c main/php_globals.h main/php_main.h sapi/cgi/cgi_main.c sapi/cli/php_cli.c sapi/embed/php_embed.c: Disabled dl(). Now it is enabled only when a SAPI layer registers it explicitly. Only CLI, CGI and EMBED do this. * ZendEngine2/zend_vm_def.h ZendEngine2/zend_vm_execute.h: typo * ZendEngine2/zend_compile.c: ws * NEWS ZendEngine2/zend_compile.c ZendEngine2/zend_compile.h ZendEngine2/zend_language_parser.y ZendEngine2/zend_vm_def.h ZendEngine2/zend_vm_execute.h: Return "new" by reference now throws an E_STRICT error 2006-03-16 Seiji Masugata * ext/mbstring/mbstring.c: added option parameter mb_list_encodings( ). 2006-03-16 Edin Kadribasic * ext/pgsql/pgsql.c ext/pgsql/php_pgsql.h: Added pg_field_table() as per req: #36750 2006-03-16 Dmitry Stogov * NEWS ZendEngine2/zend_errors.h ZendEngine2/tests/bug33771.phpt ZendEngine2/tests/error_reporting01.phpt ZendEngine2/tests/error_reporting05.phpt ZendEngine2/tests/error_reporting06.phpt ZendEngine2/tests/error_reporting07.phpt ZendEngine2/tests/error_reporting10.phpt: Added E_STRICT to E_ALL 2006-03-16 Antony Dovgal * NEWS: rephrase 2006-03-16 Dmitry Stogov * NEWS ZendEngine2/zend.c ZendEngine2/zend_compile.c ZendEngine2/zend_globals.h ext/standard/tests/array/bug33940.phpt main/main.c main/php_globals.h: Dropped allow_call_time_pass_reference, the error is maden E_STRICT. * NEWS ZendEngine2/zend.c ZendEngine2/zend_API.c ZendEngine2/zend_execute.c ZendEngine2/zend_execute.h ZendEngine2/zend_execute_API.c ZendEngine2/zend_globals.h ZendEngine2/zend_objects.c ZendEngine2/zend_operators.c ZendEngine2/zend_vm_def.h ZendEngine2/zend_vm_execute.h ZendEngine2/tests/bug30332.phpt ZendEngine2/tests/bug31828.phpt ZendEngine2/tests/bug32080.phpt ZendEngine2/tests/bug32852.phpt ZendEngine2/tests/bug33243.phpt ZendEngine2/tests/bug34712.phpt ZendEngine2/tests/bug34767.phpt ext/dom/php_dom.c ext/simplexml/simplexml.c main/main.c tests/lang/bug22367.phpt: Dropped zend.ze1_compatibility_mode * NEWS ZendEngine2/tests/unset_cv05.phpt ext/pcre/tests/bug33200.phpt ext/session/session.c ext/session/tests/007.phpt ext/session/tests/008-php4.2.3.phpt ext/session/tests/008.phpt ext/session/tests/009.phpt ext/session/tests/016.phpt main/main.c main/php_globals.h main/php_variables.c: Dropped register_long_arrays, added E_CORE for all dropped setting 2006-03-16 Antony Dovgal * (RELEASE_1_2_0) ext/oci8/package.xml: prepare to the 1.2 release 2006-03-16 Marcus Boerger * main/streams/streams.c: - Fix warning 2006-03-15 Sara Golemon * main/streams/streams.c: Fix improper byte count on partial reads 2006-03-15 Dmitry Stogov * (PHP_5_1) NEWS: Fixed Bug #36614 (Segfault when using Soap) * (PHP_5_1) ZendEngine2/zend_constants.c: Fix: incorrect string length passed * ZendEngine2/zend_strtod.c: Fixed zend_u_strtod() that returned uninitialized value in case of empty string 2006-03-15 Derick Rethans * ext/standard/string.c: - Fixed two memory issues: - In the first one we were calculating the tmp_len wrong which made the u_strFromUTF32() function try to convert too many code points. - The second issue was a bit more subtle as the "what" string wasn't duplicated but still modified. This string is passed as data to the function and this kind of data the engine tries to free when the function ends. Because we were re-allocating the data the original memory location was already freed resulting in a double free error when the engine tries to free the argument as it was passed to the function. 2006-03-15 Dmitry Stogov * ZendEngine2/zend_vm_def.h ZendEngine2/zend_vm_execute.h: Added E_STRICT warning in case of calling non-static method from incompatible context (this feature is staying for BC with php-4) * (PHP_5_1) ZendEngine2/zend_vm_def.h ZendEngine2/zend_vm_execute.h: Added E_STRICT warning in case of calling non-static method from incompatible context (this feature is staying for BC with php-4). 2006-03-15 Derick Rethans * ext/standard/var.c: - Reduce space in serialization. The first 128 bytes will now use just the character and everything above will use \uXXXX. It seems that unserialize doesn't work at all yet on the U: element so that I added to my to-do list. 2006-03-15 Dmitry Stogov * (PHP_5_1) NEWS ZendEngine2/zend_compile.c ZendEngine2/zend_compile.c ZendEngine2/zend_constants.c ZendEngine2/zend_constants.c ZendEngine2/zend_constants.h ZendEngine2/zend_constants.h: Eliminated run-time constant fetching for TRUE, FALSE and NULL * ZendEngine2/zend_vm_def.h ZendEngine2/zend_vm_def.h ZendEngine2/zend_vm_execute.h ZendEngine2/zend_vm_execute.h ZendEngine2/zend_vm_gen.php ZendEngine2/zend_vm_gen.php: Fixed "zend_vm_gen.php --without-specializer" 2006-03-15 Sara Golemon * ext/standard/file.c main/streams/streams.c: Switch (zstr) casts to use ZSTR() macro. 2006-03-14 Sara Golemon * ext/standard/file.c main/php_streams.h main/streams/streams.c: More stream updates. fgets() will work now as will anything which calls one of the _php_stream_get_line() family of functions. The one exception here is when the legacy defines are used on a unicode stream. At the moment they'll simply return NULL, I'll update these to do sloppy conversion in a bit. 'make (u)test' still doesn't work, but it's a different doesn't work. 2006-03-14 Pierre-Alain Joye * README.UPDATING_TO_PHP6: - initial commit, feel free to change/adapt 2006-03-14 Georg Richter * (PHP_5_1) ext/mysqli/mysqli_api.c: fixed a 64-bit problem reported by Pierre 2006-03-14 Dmitry Stogov * (PHP_5_1) NEWS TSRM/TSRM.c TSRM/TSRM.c TSRM/TSRM.h TSRM/TSRM.h main/main.c main/main.c: Fixed bug #35988 (Unknown persistent list entry type in module shutdown) 2006-03-14 Antony Dovgal * ext/standard/string.c: add brackets and clarity 2006-03-14 Ilia Alshanetsky * ext/standard/string.c: MFB51: Fixed offset/length parameter validation in substr_compare() function. * (PHP_5_1) NEWS ext/standard/string.c: Fixed offset/length parameter validation in substr_compare() function. 2006-03-14 Dmitry Stogov * (PHP_5_1) NEWS ZendEngine2/zend.h ZendEngine2/zend.h ZendEngine2/zend_config.w32.h ZendEngine2/zend_config.w32.h ZendEngine2/tests/bug36568.phpt ZendEngine2/tests/bug36568.phpt ZendEngine2/tests/bug36568.phpt: Fixed bug #36568 (memory_limit setting on win32 has no effect) * ZendEngine2/zend_constants.c ZendEngine2/zend_constants.c ZendEngine2/zend_execute_API.c ZendEngine2/zend_execute_API.c ZendEngine2/zend_opcode.c ZendEngine2/zend_opcode.c: zend_hash_apply() doesn't use ZEND_HASH_APPLY_... macros * ZendEngine2/zend_compile.c ZendEngine2/zend_language_scanner.l ZendEngine2/tests/jump01.phpt ZendEngine2/tests/jump02.phpt ZendEngine2/tests/jump03.phpt ZendEngine2/tests/jump04.phpt ZendEngine2/tests/jump05.phpt ZendEngine2/tests/jump06.phpt ZendEngine2/tests/jump07.phpt ZendEngine2/tests/jump08.phpt ZendEngine2/tests/jump09.phpt ZendEngine2/tests/jump10.phpt: "jump" -> "goto" 2006-03-14 Pierre-Alain Joye * ext/gd/libgd/gd_gif_out.c ext/gd/tests/bug36697.phpt: - MFB: #36697, truecolor image lost im->transparent 2006-03-13 Marcus Boerger * (PHP_5_1) ext/pgsql/pgsql.c ext/pgsql/tests/80_bug36625.phpt: - bug #36625 fix * (PHP_5_1) ext/pgsql/tests/.cvsignore: - Add missing file extension * .gdbinit: - Cleanup 2006-03-13 Pierre-Alain Joye * (PHP_5_1) NEWS ext/gd/libgd/gd_gif_out.c ext/gd/tests/bug36697.phpt ext/gd/tests/bug36697.phpt: - #36697, Transparency is lost when using imagecreatetruecolor 2006-03-13 Sara Golemon * main/streams/streams.c: Make php_stream_write_buffer() return characters written, not bytes 2006-03-13 Seiji Masugata * ext/mbstring/mb_gpc.c: fixed compiler warning. 2006-03-13 Derick Rethans * ext/standard/file.c main/streams/streams.c: This makes file_put_contents() work for: "latin1" ) ); file_put_contents( "/tmp/testuc.3", $a, FILE_TEXT, $context); file_put_contents( "/tmp/testuc.4", (string) $a, FILE_TEXT, $context); ?> But it still throws a warning on ".3". It's a small design issue that I didn't want to touch right now. 2006-03-13 Ilia Alshanetsky * (PHP_4_4) NEWS ext/standard/string.c: MFH: Added overflow checks to wordwrap() function. * ext/standard/string.c: MFB51: Added overflow checks to wordwrap() function. * (PHP_5_1) NEWS ext/standard/string.c: Added overflow checks to wordwrap() function. 2006-03-13 Dmitry Stogov * ZendEngine2/zend_compile.h ZendEngine2/zend_compile.h ZendEngine2/zend_constants.c ZendEngine2/zend_constants.c ZendEngine2/zend_execute_API.c ZendEngine2/zend_execute_API.c ZendEngine2/zend_opcode.c ZendEngine2/zend_opcode.c: Optimized cleanup loops on request shutdown * main/main.c main/main.c: Fixed realpath() cache for main script with FastCGI SAPI 2006-03-13 Sara Golemon * ext/bz2/bz2_filter.c ext/standard/file.c ext/standard/filters.c ext/standard/streamsfuncs.c ext/standard/user_filters.c ext/zlib/zlib_filter.c main/php_streams.h main/streams/cast.c main/streams/filter.c main/streams/php_stream_filter_api.h main/streams/streams.c: Refactor streams layer for PHP6. Don't be frightened by the size of this commit. A significant portion of it is restoring the read buffer semantics back to what PHP4/5 use. (Or a close aproximation thereof). See main/streams/streams.c and ext/standard/file.c for a set of UTODO comments covering work yet to be done. 2006-03-13 Marcus Boerger * (PHP_5_1) NEWS: - Fix news 2006-03-12 Ilia Alshanetsky * (PHP_5_1) NEWS: var news * ZendEngine2/zend_language_parser.y: MFB51: As per agreement during PDM, remove the E_STRICT deprecation notice from "var". * (PHP_5_1) ZendEngine2/zend_language_parser.y: As per agreement during PDM, remove the E_STRICT deprecation notice from "var". 2006-03-12 Rui Hirokawa * ext/mbstring/mbstring.c: fixed a possible null injection caused by missuse of mbstring.substitute_character. 2006-03-11 Marcus Boerger * (PHP_5_1) run-tests.php: - MFH Fix writing faillog with redirected tests * run-tests.php: - Fix writing faillog with redirected tests * (PHP_5_1) run-tests.php: - MFH Fix test results with redirected tests * run-tests.php: - Fix test results with redirected tests * run-tests.php: - Load list of extensions to test from php that is being tested rather than from php running the tests - When executing both unicode and native modes then show the type of test in the reult list (PASS:U, PASS:N, etc) * (PHP_5_1) run-tests.php: - Load list of extensions to test from php that is being tested rather than from php running the tests 2006-03-11 Georg Richter * (PHP_5_1) ext/mysqli/mysqli_api.c: fix for MySQL 5.1 (see http://bugs.mysql.com/?id=16144) 2006-03-10 Marcus Boerger * (PHP_5_1) NEWS: - Fix 2006-03-10 Brian France * (PHP_5_1) main/main.c: MFH: for the primary file only lookup the real file path and add it to the included_files list if already opened otherwise it will get opened and added to the included_files list in zend_execute_scripts * main/main.c: for the primary file only lookup the real file path and add it to the included_files list if already opened otherwise it will get opened and added to the included_files list in zend_execute_scripts 2006-03-10 Pierre-Alain Joye * ext/gd/gd.c: - MFB: #36686, do not be quiet with the extern GD * (PHP_5_1) ext/gd/gd.c: - #36686, do not be quiet with the extern GD 2006-03-10 Seiji Masugata * ext/mbstring/mbstring.c ext/mbstring/mbstring.c ext/mbstring/mbstring.c: fixed different value was returned in mb_get_info. 2006-03-10 Dmitry Stogov * ZendEngine2/zend_vm_def.h ZendEngine2/zend_vm_execute.h: Fixed compilation error (Rob) * ZendEngine2/zend_API.h: Added RETVAL_EMPTRY_TEXT() and RETURN_EMPTY_TEXT() macroses * (PHP_5_1) NEWS: Fixed bug #36629 (SoapServer::handle() exits on SOAP faults) * (PHP_5_1) NEWS ext/standard/var.c ext/standard/var.c: Fixed debug_zval_dump() to support private and protected members * NEWS ZendEngine2/zend_compile.c ZendEngine2/zend_compile.h ZendEngine2/zend_execute_API.c ZendEngine2/zend_globals.h ZendEngine2/zend_language_parser.y ZendEngine2/zend_language_scanner.l ZendEngine2/zend_opcode.c ZendEngine2/zend_vm_def.h ZendEngine2/zend_vm_execute.h ZendEngine2/zend_vm_opcodes.h ZendEngine2/tests/jump01.phpt ZendEngine2/tests/jump02.phpt ZendEngine2/tests/jump03.phpt ZendEngine2/tests/jump04.phpt ZendEngine2/tests/jump05.phpt ZendEngine2/tests/jump06.phpt ZendEngine2/tests/jump07.phpt ZendEngine2/tests/jump08.phpt ZendEngine2/tests/jump09.phpt ZendEngine2/tests/jump10.phpt: Implemented "jump label" operator (limited "goto") 2006-03-09 Sara Golemon * (PHP_5_1) main/main.c: MFH: Move temporary local storage of primary file's realpath up one block to ensure it stays on the stack. * main/main.c: Move temporary local storage of primary file's realpath up one block to ensure it stays on the stack. 2006-03-09 Ilia Alshanetsky * (PHP_5_1) NEWS configure.in main/php_version.h: Back to dev * (PHP_5_1) NEWS configure.in main/php_version.h: 5.1.3RC1 2006-03-08 Marcus Boerger * .gdbinit: - Fix a bunch of issues, now the classname and the properties of objects are shown correctly (though standard object handlers are assumed and tested for) * .gdbinit: - Automatic tsrm key fetching * .gdbinit: - Automatic TSRM/ZTS detection 2006-03-08 Michael Wallner * ext/standard/http.c: MFB: Fix bug #36656 (http_build_query generates invalid URIs due to use of square brackets) * (PHP_5_1) NEWS ext/standard/http.c: - Fix bug #36656 (http_build_query generates invalid URIs due to use of square brackets) 2006-03-08 Ilia Alshanetsky * NEWS: safe_mode news * Makefile.gcov Makefile.global configure.in php.ini-dist php.ini-recommended run-tests.php server-tests.php ext/standard/basic_functions.c ext/standard/basic_functions.h ext/zlib/zlib.c main/SAPI.c main/config.w32.h main/fopen_wrappers.c main/main.c main/php.h main/php_globals.h main/php_ini.c main/streams/plain_wrapper.c win32/install.txt win32/php5dll.dsp win32/php5dllts.dsp: So long safe_mode mode. Also removed the magic_quotes configure option, no longer relevant since the magic is gone :-). 2006-03-08 Michael Wallner * (PHP_5_1) main/php_variables.h: - remove declaration of non existant function php_treat_data 2006-03-08 Pierre-Alain Joye * NEWS php.ini-dist php.ini-recommended ext/bz2/bz2.c ext/dba/dba.c ext/dba/tests/dba008.phpt ext/dba/tests/dba_cdb_make.phpt ext/exif/exif.c ext/exif/tests/bug34704.phpt ext/exif/tests/exif002.phpt ext/exif/tests/exif006.phpt ext/iconv/tests/translit-utf8.phpt ext/interbase/ibase_query.c ext/mhash/tests/001.phpt ext/msql/php_msql.c ext/mssql/php_mssql.c ext/mysql/php_mysql.c ext/mysqli/mysqli.c ext/pcre/config0.m4 ext/pcre/pcrelib/pcre_internal.h ext/pcre/tests/bug33200.phpt ext/pgsql/pgsql.c ext/standard/basic_functions.c ext/standard/exec.c ext/standard/file.c ext/standard/streamsfuncs.c ext/standard/string.c ext/standard/tests/file/fputcsv.phpt ext/standard/tests/strings/add-and-stripslashes.phpt ext/sybase/php_sybase_db.c ext/sybase_ct/php_sybase_ct.c ext/xml/tests/xml001.phpt ext/xml/tests/xml002.phpt ext/xml/tests/xml003.phpt ext/xml/tests/xml004.phpt ext/zlib/zlib.c main/main.c main/php_globals.h main/php_variables.c main/rfc1867.c sapi/cgi/cgi_main.c: - remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase (calling ini_set('magic_....') returns 0|false - get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false - set_magic_quotes_runtime raises an E_CORE_ERROR 2006-03-07 Alex Waugh * main/php.h sapi/cgi/cgi_main.c: Fix for RISC OS * sapi/webjames/webjames.c: Improve DOCUMENT_ROOT setting 2006-03-07 Marcus Boerger * (PHP_5_1) NEWS: - Update 2006-03-07 Colin Viebrock * php.gif main/logos.h: change these in HEAD too 2006-03-07 Rob Richards * (PHP_5_1) NEWS: updated for simplexml changes * (PHP_5_1) ext/simplexml/simplexml.c ext/simplexml/tests/027.phpt ext/simplexml/tests/030.phpt ext/simplexml/tests/031.phpt ext/simplexml/tests/bug35785.phpt: - Synch with head 2006-03-07 Ilia Alshanetsky * sapi/apache/mod_php5.c sapi/apache/php_apache.c sapi/apache2filter/sapi_apache2.c sapi/apache2handler/sapi_apache2.c sapi/apache_hooks/php_apache.c sapi/nsapi/nsapi.c: Nuke safe_mode from sapi/* 2006-03-07 Antony Dovgal * ext/oci8/package.xml: prepare to the next release 2006-03-07 Edin Kadribasic * (PHP_4_4) win32/php4dllts.dsp: Sync pcre update changes 2006-03-07 Dmitry Stogov * NEWS ZendEngine2/zend_compile.c ZendEngine2/zend_compile.h ZendEngine2/zend_globals.h ZendEngine2/zend_language_parser.y ZendEngine2/tests/break_label01.phpt ZendEngine2/tests/break_label02.phpt ZendEngine2/tests/break_label03.phpt ZendEngine2/tests/break_label04.phpt ZendEngine2/tests/break_label05.phpt ZendEngine2/tests/break_label06.phpt ZendEngine2/tests/break_label07.phpt ZendEngine2/tests/break_label08.inc ZendEngine2/tests/break_label08.phpt ZendEngine2/tests/break_label09.phpt ZendEngine2/tests/break_label10.phpt ZendEngine2/tests/break_label11.phpt: Reverted "break label" 2006-03-07 Andrei Zmievski * ZendEngine2/zend_builtin_functions.c: -** empty log message *** 2006-03-07 Derick Rethans * ZendEngine2/zend_builtin_functions.c: - Make this compile again 2006-03-07 Antony Dovgal * (PHP_5_1) NEWS ext/oci8/oci8.c: MFH add workaround for Oracle server crash, use OCIServerVersion() instead of OCIPing() fix #36250 (PHP Causes ORA-07445 Core dump in Oracle server 9.2.x) * ext/oci8/oci8.c: add workaround for Oracle server crash, use OCIServerVersion() instead of OCIPing() fix #36250 (PHP Causes ORA-07445 Core dump in Oracle server 9.2.x) 2006-03-07 Andrei Zmievski * ZendEngine2/zend_builtin_functions.c: Mark some functions as Unicode-safe and adjust UTODO notices for others. 2006-03-07 Pierre-Alain Joye * NEWS: - gd1 and ft1 entry 2006-03-07 Sara Golemon * ZendEngine2/tests/unset_cv06.phpt: Remove register_globals regression test for Pierre 2006-03-07 Pierre-Alain Joye * NEWS php.ini-dist php.ini-recommended ext/mbstring/mb_gpc.c ext/mbstring/mb_gpc.h ext/mbstring/mbstring.c ext/mbstring/tests/mb_parse_str.phpt ext/mbstring/tests/mb_parse_str02.phpt ext/session/php_session.h ext/session/session.c ext/session/tests/001.phpt ext/session/tests/003.phpt ext/session/tests/004.phpt ext/session/tests/005.phpt ext/session/tests/006.phpt ext/session/tests/007.phpt ext/session/tests/008-php4.2.3.phpt ext/session/tests/008.phpt ext/session/tests/009.phpt ext/session/tests/010.phpt ext/session/tests/011.phpt ext/session/tests/012.phpt ext/session/tests/013.phpt ext/session/tests/014.phpt ext/session/tests/019.phpt ext/session/tests/bug24592.phpt ext/session/tests/bug26862.phpt main/main.c main/php_globals.h main/php_variables.c main/rfc1867.c sapi/apache/mod_php5.c sapi/apache_hooks/mod_php5.c sapi/apache_hooks/sapi_apache.c: - remove register_globals support (aka "Kill the f***ing thing" :) 2006-03-06 Sebastian Bergmann * ext/pcre/config.w32: MFB: Fix build and sync parameters with config0.m4. * (PHP_5_1) ext/pcre/config.w32: Fix build and sync parameters with config0.m4. 2006-03-06 Andrei Zmievski * (PHP_4_4) NEWS NEWS: -** empty log message *** * ext/standard/string.c: Fix protos to use 'string' for parameters that can be either binary or unicode. 2006-03-06 Derick Rethans * (PHP_5_1) NEWS: - MFH: Fixed bug #36638 (strtotime() returns false when 2nd argument < 1). (Derick) 2006-03-06 Andrei Zmievski * ext/pcre/pcrelib/pcre_printint.src ext/pcre/pcrelib/pcre_printint.src ext/pcre/pcrelib/pcre_printint.src ext/pcre/pcrelib/pcre_refcount.c ext/pcre/pcrelib/pcre_scanner.cc ext/pcre/pcrelib/pcre_scanner_unittest.cc ext/pcre/pcrelib/pcre_study.c ext/pcre/pcrelib/pcre_tables.c ext/pcre/pcrelib/pcre_try_flipped.c ext/pcre/pcrelib/pcre_ucp_findchar.c ext/pcre/pcrelib/pcre_ucp_searchfuncs.c ext/pcre/pcrelib/pcre_ucp_searchfuncs.c ext/pcre/pcrelib/pcre_ucp_searchfuncs.c ext/pcre/pcrelib/pcre_valid_utf8.c ext/pcre/pcrelib/pcre_version.c ext/pcre/pcrelib/pcre_xclass.c ext/pcre/pcrelib/pcrecpp.cc ext/pcre/pcrelib/pcrecpp.h ext/pcre/pcrelib/pcrecpp_unittest.cc ext/pcre/pcrelib/pcrecpparg.h ext/pcre/pcrelib/pcrecpparg.h ext/pcre/pcrelib/pcrecpparg.h ext/pcre/pcrelib/pcregrep.c ext/pcre/pcrelib/pcreposix.c ext/pcre/pcrelib/pcreposix.h ext/pcre/pcrelib/pcretest.c ext/pcre/pcrelib/ucp.h ext/pcre/pcrelib/ucp_findchar.c ext/pcre/pcrelib/ucpinternal.h ext/pcre/pcrelib/ucptable.c ext/pcre/pcrelib/doc/Tech.Notes ext/pcre/pcrelib/doc/pcre.txt ext/pcre/pcrelib/testdata/grepinput ext/pcre/pcrelib/testdata/greplist ext/pcre/pcrelib/testdata/grepoutput ext/pcre/pcrelib/testdata/testinput2 ext/pcre/pcrelib/testdata/testinput3 ext/pcre/pcrelib/testdata/testinput4 ext/pcre/pcrelib/testdata/testinput5 ext/pcre/pcrelib/testdata/testinput6 ext/pcre/pcrelib/testdata/testinput7 ext/pcre/pcrelib/testdata/testinput9 ext/pcre/pcrelib/testdata/testoutput1 ext/pcre/pcrelib/testdata/testoutput2 ext/pcre/pcrelib/testdata/testoutput3 ext/pcre/pcrelib/testdata/testoutput4 ext/pcre/pcrelib/testdata/testoutput5 ext/pcre/pcrelib/testdata/testoutput6 ext/pcre/pcrelib/testdata/testoutput7 ext/pcre/pcrelib/testdata/testoutput8 ext/pcre/pcrelib/testdata/testoutput9: 1.1.4; Import PCRE 6.6 and make adjustments. * ext/pcre/config.w32 ext/pcre/config0.m4 ext/pcre/pcrelib/ChangeLog ext/pcre/pcrelib/LICENCE ext/pcre/pcrelib/NEWS ext/pcre/pcrelib/NON-UNIX-USE ext/pcre/pcrelib/README ext/pcre/pcrelib/dftables.c ext/pcre/pcrelib/pcre.def ext/pcre/pcrelib/pcre.h ext/pcre/pcrelib/pcre_compile.c ext/pcre/pcrelib/pcre_config.c ext/pcre/pcrelib/pcre_dfa_exec.c ext/pcre/pcrelib/pcre_exec.c ext/pcre/pcrelib/pcre_fullinfo.c ext/pcre/pcrelib/pcre_get.c ext/pcre/pcrelib/pcre_globals.c ext/pcre/pcrelib/pcre_info.c ext/pcre/pcrelib/pcre_internal.h ext/pcre/pcrelib/pcre_maketables.c ext/pcre/pcrelib/pcre_ord2utf8.c ext/pcre/pcrelib/pcre_printint.c: Import PCRE 6.6 and make adjustments. 2006-03-06 Rob Richards * (PHP_5_1) ext/standard/filestat.c: fix win build 2006-03-06 Marcus Boerger * ext/pgsql/pgsql.c ext/pgsql/tests/.cvsignore ext/pgsql/tests/80_bug36625.phpt: - Fixed #36625 pg_trace() does not work 2006-03-06 Rob Richards * ext/simplexml/simplexml.c ext/simplexml/tests/031.phpt: implement addChild() and addAttribute() methods add test 2006-03-06 Colin Viebrock * (PHP_5_1) php.gif main/logos.h: fix logo (proper spacing between the letters) 2006-03-06 Ilia Alshanetsky * NEWS ext/standard/basic_functions.c ext/standard/basic_functions.h ext/standard/file.c: Fixed bug #36630 (umask not reset at the end of the request). 2006-03-06 Marcus Boerger * ext/ming/ming.c ext/ming/ming.c: - Proto fixes 2006-03-06 Dmitry Stogov * ZendEngine2/bench.php: fixed compatibility with ext/hash * (PHP_5_1) ZendEngine2/bench.php: Fixed compatibility with ext/hash 2006-03-05 Pierre-Alain Joye * NEWS ext/gd/gd.c ext/gd/php_gd.h: - revert Harmut commit, Histogram implementation not correct and no idea where you got the ok to add that 2006-03-05 Derick Rethans * ext/standard/php_filestat.h: - And not here either... * (PHP_5_1) ext/standard/php_filestat.h: - There is no ltouch. * (PHP_5_1) NEWS configure.in TSRM/tsrm_virtual_cwd.c TSRM/tsrm_virtual_cwd.h ext/standard/basic_functions.c ext/standard/filestat.c ext/standard/php_filestat.h: - Added lchown() and lchgrp() to change user/group ownership of symlinks. 2006-03-05 Marcus Boerger * ZendEngine2/zend_compile.c: - Fix comment, too 2006-03-05 Hartmut Holzgraefe * ext/gd/gd.c ext/gd/php_gd.h: - fixed size information for _php_sig_png array - removed extra memcmp step in signature comparison, this seemed to have been inherited from ext/standard/image.c but is not needed here as the provided buffer is big enough from the start 2006-03-05 Marcus Boerger * ZendEngine2/zend_compile.c tests/classes/ctor_in_interface_01.phpt tests/classes/ctor_in_interface_02.phpt tests/classes/ctor_in_interface_03.phpt tests/classes/ctor_in_interface_04.phpt tests/classes/interface_construct.phpt: - Fix Bug #34019 by popular demand: Implementing interface with a __construct method strange behaviour 2006-03-05 Hartmut Holzgraefe * NEWS ext/gd/gd.c ext/gd/php_gd.h: added ImageColorHistogram function 2006-03-05 Michael Wallner * (PHP_5_1) NEWS: - fix typo, reword slightly 2006-03-05 Marcus Boerger * (PHP_5_1) NEWS: - Update * ext/mysqli/mysqli.c ext/mysqli/php_mysqli.h: - Fix build 2006-03-05 Ilia Alshanetsky * (PHP_5_1) NEWS: MFH: Fixed bug #36572 (Added PDO::MYSQL_ATTR_DIRECT_QUERY constant that show be set when executing internal queries such as "show master status" via MySQL). Added missing constant for MAX_BUFFER_SIZE. 2006-03-05 Antony Dovgal * ext/simplexml/tests/bug36611.phpt: add test * ext/simplexml/tests/bug36611.phpt ext/simplexml/tests/bug36611.phpt: file bug36611.phpt was initially added on branch PHP_5_1. 2006-03-05 Marcus Boerger * ZendEngine2/zend_API.c ZendEngine2/zend_API.c ZendEngine2/zend_API.h ZendEngine2/zend_API.h: - Add missing function for completeness 2006-03-05 Antony Dovgal * ext/simplexml/simplexml.c: MF51: fix #36611 (assignment to SimpleXML object attribute changes argument type to string) 2006-03-05 Johannes Schlüter * ext/mysqli/mysqli.c: - Fix build after unicode changes 2006-03-05 Antony Dovgal * (PHP_5_1) NEWS ext/simplexml/simplexml.c: fix #36611 (assignment to SimpleXML object attribute changes argument type to string) 2006-03-05 Rob Richards * ext/simplexml/simplexml.c ext/simplexml/tests/027.phpt ext/simplexml/tests/030.phpt ext/simplexml/tests/bug35785.phpt: fix crash passing non-string member to sxe_prop_dim_exists allow offsets to be used when calling isset/unset fix tests add test 2006-03-05 Antony Dovgal * (PHP_5_1) NEWS ext/pgsql/pgsql.c: MFH: fix #36606 (pg_query_params() changes arguments type to string) * ext/pgsql/pgsql.c: fix #36606 (pg_query_params() changes arguments type to string) 2006-03-04 Johannes Schlüter * ZendEngine2/zend_API.h: - Separate ZEND_METHOD from ZEND_FUNCTION 2006-03-03 Andrei Zmievski * ZendEngine2/zend_execute.h: Clean up after Marcus. 2006-03-03 Marcus Boerger * ZendEngine2/zend_API.c ZendEngine2/zend_execute.h ZendEngine2/zend_execute_API.c: - Make unicode handling portable (noted by andrei) 2006-03-03 Andrei Zmievski * unicode-gotchas.txt: Add note about md5(). 2006-03-03 Marcus Boerger * ZendEngine2/zend_API.c: - As expected (but told otherwise) unicode strings indeed need to be terminated by two \0. * ZendEngine2/zend_exceptions.c: - Fix issue with uncaught exceptions in unicode mode 2006-03-03 Yasuo Ohgaki * ext/mbstring/mbstring.c: remove obsolete check 2006-03-03 Rob Richards * (PHP_5_1) ext/dom/dom_iterators.c ext/dom/namednodemap.c ext/dom/notation.c ext/dom/tests/dom007.phpt: fix crashes using notations and entity decls add test * ext/dom/dom_iterators.c ext/dom/namednodemap.c ext/dom/notation.c ext/dom/tests/dom007.phpt ext/dom/tests/dom007.phpt: update dom iterator get key function for engine iterator changes fix crashes using notations and entity decls add test 2006-03-03 Marcus Boerger * ZendEngine2/tests/break_label10.phpt ZendEngine2/tests/break_label11.phpt: - Add new tests 2006-03-03 Dmitry Stogov * ZendEngine2/zend_vm_execute.h: Regenerated * NEWS ZendEngine2/zend_compile.c ZendEngine2/zend_compile.h ZendEngine2/zend_globals.h ZendEngine2/zend_language_parser.y ZendEngine2/tests/break_label01.phpt ZendEngine2/tests/break_label02.phpt ZendEngine2/tests/break_label03.phpt ZendEngine2/tests/break_label04.phpt ZendEngine2/tests/break_label05.phpt ZendEngine2/tests/break_label06.phpt ZendEngine2/tests/break_label07.phpt ZendEngine2/tests/break_label08.inc ZendEngine2/tests/break_label08.phpt ZendEngine2/tests/break_label09.phpt: Added support for "continue" and "break" operators with labels. Each loop or switch statement can be marked by label and then it is possible to write "break