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