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