[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
pajoye Mon Oct 1 08:14:03 2007 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: - add notice about glob regression (Lukas) http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.39r2=1.1.2.40diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.39 php-src/README.UPDATE_5_2:1.1.2.40 --- php-src/README.UPDATE_5_2:1.1.2.39 Sat Jan 6 18:05:02 2007 +++ php-src/README.UPDATE_5_2 Mon Oct 1 08:14:03 2007 @@ -172,6 +172,21 @@ from your error handler in order to populate $php_errormsg. This allows you to fine-grain the levels of the messages stored. +== +Regressions introduced/fixed +== + +- In version 5.2.4 a security fix caused a regression for patterns of + the form /foo/*/bar/*. Since version 5.2.5 instead of raising a warning the + glob() function will return false when openbase_dir restrictions are violated. + + #See http://bugs.php.net/bug.php?id=41655 + + The warning that used to be raised looked like something as follows: + Warning: glob() [function.glob]: Unable to access /foo/*/bar/* in /foo.php on line xxx + #See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dir.c?r1=1.169r2=1.170 + + The patch can safely be applied to PHP 5.2.4 as well. == Backwards incompatible changes -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
rrichards Sat Jan 6 18:05:02 2007 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: update xmlwriter_write_dtd_entity parameters http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.38r2=1.1.2.39diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.38 php-src/README.UPDATE_5_2:1.1.2.39 --- php-src/README.UPDATE_5_2:1.1.2.38 Sat Jan 6 16:50:55 2007 +++ php-src/README.UPDATE_5_2 Sat Jan 6 18:05:02 2007 @@ -881,7 +881,7 @@ - Create start DTD Entity - returns FALSE on error bool xmlwriter_end_dtd_entity(resource xmlwriter) - End current DTD Entity - returns FALSE on error -bool xmlwriter_write_dtd_entity(resource xmlwriter, string name, string content [, int pe [, string pubid [, string sysid [, string ndataid) +bool xmlwriter_write_dtd_entity(resource xmlwriter, string name, string content [, bool pe [, string pubid [, string sysid [, string ndataid) - Write full DTD Entity tag - returns FALSE on error -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Mon Nov 13 18:30:59 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: It's called addEmptyDir(), not createEmptyDir() http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.35r2=1.1.2.36diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.35 php-src/README.UPDATE_5_2:1.1.2.36 --- php-src/README.UPDATE_5_2:1.1.2.35 Sun Nov 12 17:16:13 2006 +++ php-src/README.UPDATE_5_2 Mon Nov 13 18:30:59 2006 @@ -749,7 +749,7 @@ In ext/zip == ZipArchive: - bool createEmptyDir(string dirname) + bool addEmptyDir(string dirname) Creates an empty directory in the archive As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15r2=1.1.2.16 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/spl spl_directory.c /ext/spl/tests fileobject_003.phpt
bjori Sun Nov 12 17:16:14 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 /php-src/ext/splspl_directory.c /php-src/ext/spl/tests fileobject_003.phpt Log: MFH: SplFileObject::getFilename() no longer overwrites SplFileInfo::getFilename() (SplFileObject::getFilename() therefor only returns the filename now) http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.34r2=1.1.2.35diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.34 php-src/README.UPDATE_5_2:1.1.2.35 --- php-src/README.UPDATE_5_2:1.1.2.34 Thu Nov 9 12:35:12 2006 +++ php-src/README.UPDATE_5_2 Sun Nov 12 17:16:13 2006 @@ -188,6 +188,10 @@ ZipArchive::setCommentIndex() now return TRUE on success As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15r2=1.1.2.16 +In ext/spl +== +SplFileObject::getFilename() now returns the filename, not relative/path/to/file +As of 5.2.1 #See http://cvs.php.net/viewcvs.cgi/php-src/ext/spl/spl_directory.c?r1=1.45.2.27.2.10r2=1.45.2.27.2.11 == NEW ERROR MESSAGES == http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_directory.c?r1=1.45.2.27.2.10r2=1.45.2.27.2.11diff_format=u Index: php-src/ext/spl/spl_directory.c diff -u php-src/ext/spl/spl_directory.c:1.45.2.27.2.10 php-src/ext/spl/spl_directory.c:1.45.2.27.2.11 --- php-src/ext/spl/spl_directory.c:1.45.2.27.2.10 Mon Nov 6 23:20:11 2006 +++ php-src/ext/spl/spl_directory.c Sun Nov 12 17:16:13 2006 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: spl_directory.c,v 1.45.2.27.2.10 2006/11/06 23:20:11 bjori Exp $ */ +/* $Id: spl_directory.c,v 1.45.2.27.2.11 2006/11/12 17:16:13 bjori Exp $ */ #ifdef HAVE_CONFIG_H # include config.h @@ -550,7 +550,7 @@ { spl_filesystem_object *intern = (spl_filesystem_object*)zend_object_store_get_object(getThis() TSRMLS_CC); - if (intern-path_len) { + if (intern-path_len intern-path_len intern-file_name_len) { RETURN_STRINGL(intern-file_name + intern-path_len + 1, intern-file_name_len - (intern-path_len + 1), 1); } else { RETURN_STRINGL(intern-file_name, intern-file_name_len, 1); @@ -1658,15 +1658,6 @@ spl_filesystem_file_rewind(getThis(), intern TSRMLS_CC); } /* }}} */ -/* {{{ proto string SplFileObject::getFilename() - Return the filename */ -SPL_METHOD(SplFileObject, getFilename) -{ - spl_filesystem_object *intern = (spl_filesystem_object*)zend_object_store_get_object(getThis() TSRMLS_CC); - - RETURN_STRINGL(intern-file_name, intern-file_name_len, 1); -} /* }}} */ - /* {{{ proto void SplFileObject::eof() Return whether end of file is reached */ SPL_METHOD(SplFileObject, eof) @@ -2153,7 +2144,6 @@ static zend_function_entry spl_SplFileObject_functions[] = { SPL_ME(SplFileObject, __construct,arginfo_file_object___construct, ZEND_ACC_PUBLIC) - SPL_ME(SplFileObject, getFilename,NULL, ZEND_ACC_PUBLIC) SPL_ME(SplFileObject, rewind, NULL, ZEND_ACC_PUBLIC) SPL_ME(SplFileObject, eof,NULL, ZEND_ACC_PUBLIC) SPL_ME(SplFileObject, valid, NULL, ZEND_ACC_PUBLIC) http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/fileobject_003.phpt?r1=1.1.2.4r2=1.1.2.5diff_format=u Index: php-src/ext/spl/tests/fileobject_003.phpt diff -u php-src/ext/spl/tests/fileobject_003.phpt:1.1.2.4 php-src/ext/spl/tests/fileobject_003.phpt:1.1.2.5 --- php-src/ext/spl/tests/fileobject_003.phpt:1.1.2.4 Mon Nov 6 15:21:45 2006 +++ php-src/ext/spl/tests/fileobject_003.phpt Sun Nov 12 17:16:13 2006 @@ -55,12 +55,12 @@ string(%d) %sfileobject_001a.txt string(%d) %sfileobject_001a.txt bool(true) -string(%d) %sfileobject_001a.txt +string(19) fileobject_001a.txt bool(true) string(%d) %stests bool(true) string(%d) %sfileobject_001a.txt -string(%d) %sfileobject_001a.txt +string(19) fileobject_001a.txt string(%d) %stests ===1=== object(SplFileInfo)#%d (0) { @@ -73,7 +73,7 @@ string(%d) %stests/ string(%d) %stests bool(true) -string(%d) %stests +string(5) tests bool(true) string(%d) %sspl bool(true) @@ -91,11 +91,11 @@ string(%d) %stests string(%d) %stests bool(true) -string(%d) %stests +string(%d) tests bool(true) string(%d) %sspl bool(true) string(%d) %stests -string(%d) %stests +string(5) tests string(%d) %sspl ===DONE=== -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Thu Nov 9 11:44:13 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: New features/errormsgs/return values in ext/zip New optional parameter in ext/ming http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.32r2=1.1.2.33diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.32 php-src/README.UPDATE_5_2:1.1.2.33 --- php-src/README.UPDATE_5_2:1.1.2.32 Mon Nov 6 18:21:25 2006 +++ php-src/README.UPDATE_5_2 Thu Nov 9 11:44:13 2006 @@ -182,6 +182,12 @@ getrusage() will return NULL when passed incompatible arguments # See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/microtime.c?r1=1.57r2=1.58 ?r1=1.53.2.2r2=1.53.2.2.2.1 +In ext/zip +== +ZipArchive::setCommentName() now returns TRUE on success +ZipArchive::setCommentIndex() now return TRUE on success +#See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15r2=1.1.2.16 + == NEW ERROR MESSAGES == @@ -399,6 +405,19 @@ ? +In the Zip extension + +?php +$obj = new ZipArchive(); +$obj-open(archive.zip); +$obj-setCommentName(, comment);' +/* Notice: ZipArchive::setCommentName(): Empty string as entry name in filename on line n */ + +$obj-getCommentName(); +/* Notice: ZipArchive::getCommentName(): Empty string as entry name in filename on line n */ +#See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15r2=1.1.2.16 +? + NEW FEATURES @@ -723,6 +742,12 @@ boolean XMLReader::setSchema(string filename) Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read() +In ext/zip +== +ZipArchive: + bool createEmptyDir(string dirname) +Creates an empty directory in the archive +#See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15r2=1.1.2.16 New class constants === @@ -850,6 +875,10 @@ === - int mb_strrpos(string haystack, string needle [, int offset [, string encoding]]) (offset) +In ext/ming + - int swfmovie::streamMP3(mixed file [, float skip]) (skip) +#See http://cvs.php.net/viewvc.cgi/php-src/ext/ming/ming.c?r1=1.79.2.4.2.3r2=1.79.2.4.2.4 + In ext/openssl == - int openssl_verify(string data, string signature, mixed key [, int signature_algo]) (signature_algo) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Thu Nov 9 12:35:12 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: Add As of 5.2.1 notes as requested http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.33r2=1.1.2.34diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.33 php-src/README.UPDATE_5_2:1.1.2.34 --- php-src/README.UPDATE_5_2:1.1.2.33 Thu Nov 9 11:44:13 2006 +++ php-src/README.UPDATE_5_2 Thu Nov 9 12:35:12 2006 @@ -180,13 +180,13 @@ In the PHP core === getrusage() will return NULL when passed incompatible arguments -# See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/microtime.c?r1=1.57r2=1.58 ?r1=1.53.2.2r2=1.53.2.2.2.1 +As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/microtime.c?r1=1.57r2=1.58 ?r1=1.53.2.2r2=1.53.2.2.2.1 In ext/zip == ZipArchive::setCommentName() now returns TRUE on success ZipArchive::setCommentIndex() now return TRUE on success -#See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15r2=1.1.2.16 +As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15r2=1.1.2.16 == NEW ERROR MESSAGES @@ -220,7 +220,7 @@ /* when allow_url_include is OFF (default) */ include php://input; /* Warning: include(): URL file-access is disabled in the server configuration in filename on line n */ -#See: http://cvs.php.net/viewvc.cgi/php-src/ext/standard/php_fopen_wrapper.c?r1=1.45.2.4.2.3r2=1.45.2.4.2.4 +As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/php_fopen_wrapper.c?r1=1.45.2.4.2.3r2=1.45.2.4.2.4 ? @@ -343,7 +343,7 @@ new DateTime(new stdclass); /* Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() expects parameter 1 to be string, object given' in filename:n */ -#See http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.43.2.45.2.33r2=1.43.2.45.2.34 +As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.43.2.45.2.33r2=1.43.2.45.2.34 ? In the dBase extension @@ -415,7 +415,7 @@ $obj-getCommentName(); /* Notice: ZipArchive::getCommentName(): Empty string as entry name in filename on line n */ -#See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15r2=1.1.2.16 +As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15r2=1.1.2.16 ? @@ -747,7 +747,7 @@ ZipArchive: bool createEmptyDir(string dirname) Creates an empty directory in the archive -#See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15r2=1.1.2.16 +As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15r2=1.1.2.16 New class constants === @@ -869,15 +869,16 @@ === - resource imap_open ( string mailbox, string username, string password [, int options[, int n_retries]]) (n_retries) - bool imap_reopen(resource stream_id, string mailbox [, int options [, int n_retries]]) (n_retries) -#See http://cvs.php.net/viewvc.cgi/php-src/ext/imap/php_imap.c?r1=1.208.2.7.2.7r2=1.208.2.7.2.8 +As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/imap/php_imap.c?r1=1.208.2.7.2.7r2=1.208.2.7.2.8 In ext/mbstring === - int mb_strrpos(string haystack, string needle [, int offset [, string encoding]]) (offset) In ext/ming +=== - int swfmovie::streamMP3(mixed file [, float skip]) (skip) -#See http://cvs.php.net/viewvc.cgi/php-src/ext/ming/ming.c?r1=1.79.2.4.2.3r2=1.79.2.4.2.4 +As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/ming/ming.c?r1=1.79.2.4.2.3r2=1.79.2.4.2.4 In ext/openssl == -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Mon Nov 6 16:51:55 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: include php://input data: have been disabled (with allow_fopen_include off) new DateTime(new stdclass) now throws exception imap_[re]open() has new optional parameter http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.30r2=1.1.2.31diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.30 php-src/README.UPDATE_5_2:1.1.2.31 --- php-src/README.UPDATE_5_2:1.1.2.30 Fri Nov 3 18:07:53 2006 +++ php-src/README.UPDATE_5_2 Mon Nov 6 16:51:55 2006 @@ -207,6 +207,15 @@ strrpos(foo, f, 4); /* Notice: strrpos(): Offset is greater than the length of haystack string in filename on line n */ +/* when allow_fopen_include is OFF (default) */ +include data:;base64,PD9waHAgcGhwaW5mbygpOz8+; +/* Warning: include(): URL file-access is disabled in the server configuration in filename on line n */ + +/* when allow_fopen_include is OFF (default) */ +include php://input; +/* Warning: include(): URL file-access is disabled in the server configuration in filename on line n */ +#See: http://cvs.php.net/viewvc.cgi/php-src/ext/standard/php_fopen_wrapper.c?r1=1.45.2.4.2.3r2=1.45.2.4.2.4 + ? OO related in the PHP core @@ -326,6 +335,9 @@ strtotime(today, now);' /* Warning: strtotime() expects parameter 2 to be long, string given in filename on line n */ +new DateTime(new stdclass); +/* Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() expects parameter 1 to be string, object given' in filename:n */ +#See http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.43.2.45.2.33r2=1.43.2.45.2.34 ? In the dBase extension @@ -828,6 +840,12 @@ === - array curl_multi_info_read(resource mh [, long msgs_in_queue]) (msgs_in_queue) +In ext/imap +=== + - resource imap_open ( string mailbox, string username, string password [, int options[, int n_retries]]) (n_retries) + - bool imap_reopen(resource stream_id, string mailbox [, int options [, int n_retries]]) (n_retries) +#See http://cvs.php.net/viewvc.cgi/php-src/ext/imap/php_imap.c?r1=1.208.2.7.2.7r2=1.208.2.7.2.8 + In ext/mbstring === - int mb_strrpos(string haystack, string needle [, int offset [, string encoding]]) (offset) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
rasmus Mon Nov 6 18:21:25 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: It is allow_url_include not allow_fopen_include http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.31r2=1.1.2.32diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.31 php-src/README.UPDATE_5_2:1.1.2.32 --- php-src/README.UPDATE_5_2:1.1.2.31 Mon Nov 6 16:51:55 2006 +++ php-src/README.UPDATE_5_2 Mon Nov 6 18:21:25 2006 @@ -207,11 +207,11 @@ strrpos(foo, f, 4); /* Notice: strrpos(): Offset is greater than the length of haystack string in filename on line n */ -/* when allow_fopen_include is OFF (default) */ +/* when allow_url_include is OFF (default) */ include data:;base64,PD9waHAgcGhwaW5mbygpOz8+; /* Warning: include(): URL file-access is disabled in the server configuration in filename on line n */ -/* when allow_fopen_include is OFF (default) */ +/* when allow_url_include is OFF (default) */ include php://input; /* Warning: include(): URL file-access is disabled in the server configuration in filename on line n */ #See: http://cvs.php.net/viewvc.cgi/php-src/ext/standard/php_fopen_wrapper.c?r1=1.45.2.4.2.3r2=1.45.2.4.2.4 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/date php_date.c
bjori Fri Nov 3 15:06:51 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/date php_date.c /php-srcREADME.UPDATE_5_2 Log: MFH: Add wrong param warning to strtotime() http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.43.2.45.2.32r2=1.43.2.45.2.33diff_format=u Index: php-src/ext/date/php_date.c diff -u php-src/ext/date/php_date.c:1.43.2.45.2.32 php-src/ext/date/php_date.c:1.43.2.45.2.33 --- php-src/ext/date/php_date.c:1.43.2.45.2.32 Fri Nov 3 14:38:45 2006 +++ php-src/ext/date/php_date.c Fri Nov 3 15:06:51 2006 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: php_date.c,v 1.43.2.45.2.32 2006/11/03 14:38:45 bjori Exp $ */ +/* $Id: php_date.c,v 1.43.2.45.2.33 2006/11/03 15:06:51 bjori Exp $ */ #include php.h #include php_streams.h @@ -1083,7 +1083,7 @@ timelib_unixtime2local(now, t-sse); timelib_time_dtor(t); efree(initial_ts); - } else if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, s, times, time_len) != FAILURE) { + } else if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, s|l, times, time_len, preset_ts) != FAILURE) { /* We have no initial timestamp */ now = timelib_time_ctor(); now-tz_info = tzi; http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.27r2=1.1.2.28diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.27 php-src/README.UPDATE_5_2:1.1.2.28 --- php-src/README.UPDATE_5_2:1.1.2.27 Fri Nov 3 07:27:52 2006 +++ php-src/README.UPDATE_5_2 Fri Nov 3 15:06:51 2006 @@ -309,6 +309,16 @@ ? +In the date extension += + +?php + +strtotime(today, now);' +/* Warning: strtotime() expects parameter 2 to be long, string given in filename on line n */ + +? + In the dBase extension == -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/standard microtime.c
bjori Fri Nov 3 15:48:39 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 /php-src/ext/standard microtime.c Log: MFH: fix parameter parsing in getrusage() http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.28r2=1.1.2.29diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.28 php-src/README.UPDATE_5_2:1.1.2.29 --- php-src/README.UPDATE_5_2:1.1.2.28 Fri Nov 3 15:06:51 2006 +++ php-src/README.UPDATE_5_2 Fri Nov 3 15:48:39 2006 @@ -173,6 +173,14 @@ you to fine-grain the levels of the messages stored. +== +Backwards incompatible changes +== + +In the PHP core +=== +getrusage() will return NULL when passed incompatible arguments + == NEW ERROR MESSAGES == http://cvs.php.net/viewvc.cgi/php-src/ext/standard/microtime.c?r1=1.53.2.2r2=1.53.2.2.2.1diff_format=u Index: php-src/ext/standard/microtime.c diff -u php-src/ext/standard/microtime.c:1.53.2.2 php-src/ext/standard/microtime.c:1.53.2.2.2.1 --- php-src/ext/standard/microtime.c:1.53.2.2 Sun Jan 1 12:50:15 2006 +++ php-src/ext/standard/microtime.cFri Nov 3 15:48:39 2006 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: microtime.c,v 1.53.2.2 2006/01/01 12:50:15 sniper Exp $ */ +/* $Id: microtime.c,v 1.53.2.2.2.1 2006/11/03 15:48:39 bjori Exp $ */ #include php.h @@ -115,7 +115,11 @@ long pwho = 0; int who = RUSAGE_SELF; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, |l, pwho) != FAILURE pwho == 1) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, |l, pwho) == FAILURE) { + return; + } + + if (pwho == 1) { who = RUSAGE_CHILDREN; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/standard microtime.c
Hannes, originally at least everything listed in that file was a backward incompatible change! Can you please leave something a bit less cryptic in there so it's easier to research at the point of the next release? Thanks, - Steph - Original Message - From: Hannes Magnusson [EMAIL PROTECTED] To: php-cvs@lists.php.net Sent: Friday, November 03, 2006 5:48 PM Subject: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/standard microtime.c bjori Fri Nov 3 15:48:39 2006 UTC Modified files: (Branch: PHP_5_2) /php-src README.UPDATE_5_2 /php-src/ext/standard microtime.c Log: MFH: fix parameter parsing in getrusage() http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.28r2=1.1.2.29diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.28 php-src/README.UPDATE_5_2:1.1.2.29 --- php-src/README.UPDATE_5_2:1.1.2.28 Fri Nov 3 15:06:51 2006 +++ php-src/README.UPDATE_5_2 Fri Nov 3 15:48:39 2006 @@ -173,6 +173,14 @@ you to fine-grain the levels of the messages stored. +== +Backwards incompatible changes +== + +In the PHP core +=== +getrusage() will return NULL when passed incompatible arguments + == NEW ERROR MESSAGES == http://cvs.php.net/viewvc.cgi/php-src/ext/standard/microtime.c?r1=1.53.2.2r2=1.53.2.2.2.1diff_format=u Index: php-src/ext/standard/microtime.c diff -u php-src/ext/standard/microtime.c:1.53.2.2 php-src/ext/standard/microtime.c:1.53.2.2.2.1 --- php-src/ext/standard/microtime.c:1.53.2.2 Sun Jan 1 12:50:15 2006 +++ php-src/ext/standard/microtime.c Fri Nov 3 15:48:39 2006 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: microtime.c,v 1.53.2.2 2006/01/01 12:50:15 sniper Exp $ */ +/* $Id: microtime.c,v 1.53.2.2.2.1 2006/11/03 15:48:39 bjori Exp $ */ #include php.h @@ -115,7 +115,11 @@ long pwho = 0; int who = RUSAGE_SELF; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, |l, pwho) != FAILURE pwho == 1) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, |l, pwho) == FAILURE) { + return; + } + + if (pwho == 1) { who = RUSAGE_CHILDREN; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/standard microtime.c
Hi Steph On 11/3/06, Steph Fox [EMAIL PROTECTED] wrote: Hannes, originally at least everything listed in that file was a backward incompatible change! Can you please leave something a bit less cryptic in there so it's easier to research at the point of the next release? I didn't really know what else to call it.. All other mentioned backwards incompatible changes are listed as error changes, this doesn't really fit that category. The BC break is due to oversight in the parameter parsing which didn't exit the execution of the function, no matter what you passed in. -Hannes Thanks, - Steph - Original Message - From: Hannes Magnusson [EMAIL PROTECTED] To: php-cvs@lists.php.net Sent: Friday, November 03, 2006 5:48 PM Subject: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/standard microtime.c bjori Fri Nov 3 15:48:39 2006 UTC Modified files: (Branch: PHP_5_2) /php-src README.UPDATE_5_2 /php-src/ext/standard microtime.c Log: MFH: fix parameter parsing in getrusage() http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.28r2=1.1.2.29diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.28 php-src/README.UPDATE_5_2:1.1.2.29 --- php-src/README.UPDATE_5_2:1.1.2.28 Fri Nov 3 15:06:51 2006 +++ php-src/README.UPDATE_5_2 Fri Nov 3 15:48:39 2006 @@ -173,6 +173,14 @@ you to fine-grain the levels of the messages stored. +== +Backwards incompatible changes +== + +In the PHP core +=== +getrusage() will return NULL when passed incompatible arguments + == NEW ERROR MESSAGES == http://cvs.php.net/viewvc.cgi/php-src/ext/standard/microtime.c?r1=1.53.2.2r2=1.53.2.2.2.1diff_format=u Index: php-src/ext/standard/microtime.c diff -u php-src/ext/standard/microtime.c:1.53.2.2 php-src/ext/standard/microtime.c:1.53.2.2.2.1 --- php-src/ext/standard/microtime.c:1.53.2.2 Sun Jan 1 12:50:15 2006 +++ php-src/ext/standard/microtime.c Fri Nov 3 15:48:39 2006 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: microtime.c,v 1.53.2.2 2006/01/01 12:50:15 sniper Exp $ */ +/* $Id: microtime.c,v 1.53.2.2.2.1 2006/11/03 15:48:39 bjori Exp $ */ #include php.h @@ -115,7 +115,11 @@ long pwho = 0; int who = RUSAGE_SELF; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, |l, pwho) != FAILURE pwho == 1) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, |l, pwho) == FAILURE) { + return; + } + + if (pwho == 1) { who = RUSAGE_CHILDREN; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/standard microtime.c
OK, we'll worry about that part next time the file needs a rewrite. But could you please put a clue in there when you make entries anyway in that category? (e.g. who, when, revision info - any one of these is useful). - Original Message - From: Hannes Magnusson [EMAIL PROTECTED] To: Steph Fox [EMAIL PROTECTED] Cc: php-cvs@lists.php.net Sent: Friday, November 03, 2006 7:47 PM Subject: Re: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/standard microtime.c Hi Steph On 11/3/06, Steph Fox [EMAIL PROTECTED] wrote: Hannes, originally at least everything listed in that file was a backward incompatible change! Can you please leave something a bit less cryptic in there so it's easier to research at the point of the next release? I didn't really know what else to call it.. All other mentioned backwards incompatible changes are listed as error changes, this doesn't really fit that category. The BC break is due to oversight in the parameter parsing which didn't exit the execution of the function, no matter what you passed in. -Hannes Thanks, - Steph - Original Message - From: Hannes Magnusson [EMAIL PROTECTED] To: php-cvs@lists.php.net Sent: Friday, November 03, 2006 5:48 PM Subject: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/standard microtime.c bjori Fri Nov 3 15:48:39 2006 UTC Modified files: (Branch: PHP_5_2) /php-src README.UPDATE_5_2 /php-src/ext/standard microtime.c Log: MFH: fix parameter parsing in getrusage() http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.28r2=1.1.2.29diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.28 php-src/README.UPDATE_5_2:1.1.2.29 --- php-src/README.UPDATE_5_2:1.1.2.28 Fri Nov 3 15:06:51 2006 +++ php-src/README.UPDATE_5_2 Fri Nov 3 15:48:39 2006 @@ -173,6 +173,14 @@ you to fine-grain the levels of the messages stored. +== +Backwards incompatible changes +== + +In the PHP core +=== +getrusage() will return NULL when passed incompatible arguments + == NEW ERROR MESSAGES == http://cvs.php.net/viewvc.cgi/php-src/ext/standard/microtime.c?r1=1.53.2.2r2=1.53.2.2.2.1diff_format=u Index: php-src/ext/standard/microtime.c diff -u php-src/ext/standard/microtime.c:1.53.2.2 php-src/ext/standard/microtime.c:1.53.2.2.2.1 --- php-src/ext/standard/microtime.c:1.53.2.2 Sun Jan 1 12:50:15 2006 +++ php-src/ext/standard/microtime.c Fri Nov 3 15:48:39 2006 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: microtime.c,v 1.53.2.2 2006/01/01 12:50:15 sniper Exp $ */ +/* $Id: microtime.c,v 1.53.2.2.2.1 2006/11/03 15:48:39 bjori Exp $ */ #include php.h @@ -115,7 +115,11 @@ long pwho = 0; int who = RUSAGE_SELF; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, |l, pwho) != FAILURE pwho == 1) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, |l, pwho) == FAILURE) { + return; + } + + if (pwho == 1) { who = RUSAGE_CHILDREN; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Fri Nov 3 18:07:53 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: Add comment to make tracking the commit down easier http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.29r2=1.1.2.30diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.29 php-src/README.UPDATE_5_2:1.1.2.30 --- php-src/README.UPDATE_5_2:1.1.2.29 Fri Nov 3 15:48:39 2006 +++ php-src/README.UPDATE_5_2 Fri Nov 3 18:07:53 2006 @@ -180,6 +180,7 @@ In the PHP core === getrusage() will return NULL when passed incompatible arguments +# See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/microtime.c?r1=1.57r2=1.58 ?r1=1.53.2.2r2=1.53.2.2.2.1 == NEW ERROR MESSAGES -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
Thanks! - Original Message - From: Hannes Magnusson [EMAIL PROTECTED] To: php-cvs@lists.php.net Sent: Friday, November 03, 2006 8:07 PM Subject: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 bjori Fri Nov 3 18:07:53 2006 UTC Modified files: (Branch: PHP_5_2) /php-src README.UPDATE_5_2 Log: Add comment to make tracking the commit down easier http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.29r2=1.1.2.30diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.29 php-src/README.UPDATE_5_2:1.1.2.30 --- php-src/README.UPDATE_5_2:1.1.2.29 Fri Nov 3 15:48:39 2006 +++ php-src/README.UPDATE_5_2 Fri Nov 3 18:07:53 2006 @@ -180,6 +180,7 @@ In the PHP core === getrusage() will return NULL when passed incompatible arguments +# See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/microtime.c?r1=1.57r2=1.58 ?r1=1.53.2.2r2=1.53.2.2.2.1 == NEW ERROR MESSAGES -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
iliaa Tue Oct 31 17:24:51 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: Cleanup of 5.2 update file from Steph http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.25r2=1.1.2.26diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.25 php-src/README.UPDATE_5_2:1.1.2.26 --- php-src/README.UPDATE_5_2:1.1.2.25 Wed Oct 25 12:58:46 2006 +++ php-src/README.UPDATE_5_2 Tue Oct 31 17:24:51 2006 @@ -23,7 +23,8 @@ php --rc DateTime php --rc DateTimeZone -under PHP CLI. All methods map to existing procedural date functions. +under PHP CLI - or see the PHP Manual under Date/Time functions, or the 'NEW +FEATURES' section below. All methods map to existing procedural date functions. == Items from the NEWS file explained @@ -40,7 +41,7 @@ - Changed E_ALL error reporting mode to include E_RECOVERABLE_ERROR. (Marcus) This change means that the value of the E_ALL error_reporting constant is now - 6143, where its previous value was 2047. If you are setting the error_reporting + 6143, where the previous value was 2047. If you are setting the error_reporting mode from either the Apache config file or the .htaccess files, you will need to adjust the value accordingly. The same applies if you use the numeric value rather than the constant in your PHP scripts. @@ -81,7 +82,7 @@ The introduction of the 'data' URL scheme has the potential to lead to a change of behaviour under Windows. If you are working with an NTFS - filesystem and making use of meta streams in your application, and if you + file system and making use of meta streams in your application, and if you just happen to be using a file with the name 'data:' that is accessed without any path information - it won't work any more. The fix is to use the 'file:' protocol when accessing it. @@ -109,7 +110,7 @@ The filepro and hwapi extensions have been moved to PECL and are no longer part of the PHP distribution. The PECL package version of these extensions - will be created on the basis of user demand. + will be created according to user demand. - Added extensions (Rasmus, Derick, Pierre) @@ -124,7 +125,8 @@ The Zip extension enables you to transparently read or write ZIP compressed archives and the files inside them. - Please refer to the 'NEW FEATURES' below or the PHP Manual for details. + Please refer to the NEW FEATURES section below or to the PHP Manual + for details. - Improved memory manager and increased default memory limit (Dmitry) @@ -148,74 +150,68 @@ in the Windows registry. -- Added notice when accessing return value from __get() in write mode (Marcus) - - The reason for this is that __get() only returns variables in read mode, and - it is therefore not possible to write to the returned variable. In previous - releases there was no effective way to detect incorrect usage. Starting from - PHP 5.2, an E_NOTICE will be emitted in this situation. - - WARNING: foreach() and functions that modify the internal array pointer will - now also trigger the same E_NOTICE, since modification requires that the - variable be accessed in write mode. To work around this, you should either - cast the returned value from __get() to an array, or use SPL's ArrayObject - instead of an array. - - CLI SAPI no longer checks cwd for php.ini or the php-cli.ini file (Edin) - In PHP 5.1.X an undocumented feature was added that made the CLI binary - check the current directory for PHP configuration file possibly leading to - unpredictable behavior due to an un-expected configuration file being - read. This functionality was removed in 5.2 and PHP will no longer search - CWD for the presence of the php.ini or the php-cli.ini files. + In PHP 5.1 an undocumented feature was added that made the CLI binary check + the current working directory for a PHP configuration file, potentially + leading to unpredictable behavior if an unexpected configuration file were + read. This functionality was removed in 5.2, and PHP will no longer search + CWD for the presence of php.ini or php-cli.ini files. + - Added a notice when performing modulus 0 operation (Tony) - In earlier versions of PHP performing integer % 0 did not emit any - warning messages, instead retuning an un-expected return value of false. - As of PHP 5.2 this operation will emit E_WARNING as is the case in all - other instance where division by zero is performed. - -== -Backwards incompatible changes -== - -Misc - -- $php_errormsg now prepends the function name causing the error -- $php_errormsg doesn't get populated anymore when using custom error handler -- PHP-CLI does no longer search in cwd for php.ini + In earlier versions of PHP, performing integer % 0 did not emit any + warning messages, instead returning an
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Wed Oct 25 12:19:13 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: New extensions - json - filter - zip New classes - DateTime - DateTimeZone New functions - image_type_to_extension - gmp_nextprime - xmlwriter_full_end_element - xmlwriter_write_raw - timezone_identifiers_list Added error message (objects without casting handler) caught by rasmus http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.22r2=1.1.2.23diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.22 php-src/README.UPDATE_5_2:1.1.2.23 --- php-src/README.UPDATE_5_2:1.1.2.22 Tue Oct 24 21:51:15 2006 +++ php-src/README.UPDATE_5_2 Wed Oct 25 12:19:13 2006 @@ -359,10 +359,181 @@ } ? +?php +class foo { +} +$foo = new foo; +/* PHP Catchable fatal error: Object of class foo could not be converted to string in /usr/src/php/examples/convert.object.to.type.php on line 6 */ +print $foo; +? + + NEW FEATURES +New extensions: + JSON +string json_encode(mixed parameter) + - Takes a object or an array and return JSON encoded string +mixed json_decode(string json[, boolean assoc=0]) + - Decodes JSON string into PHP object/associatie array + + Zip +Class constants: + ZipArchive::CREATE + ZipArchive::EXCL + ZipArchive::CHECKCONS + ZipArchive::OVERWRITE + ZipArchive::FL_NOCASE + ZipArchive::EXCL + ZipArchive::CHECKCONS + ZipArchive::OVERWRITE + ZipArchive::FL_NOCASE + ZipArchive::FL_NODIR + ZipArchive::FL_COMPRESSED + ZipArchive::FL_UNCHANGED + ZipArchive::CM_DEFAULT + ZipArchive::CM_STORE + ZipArchive::CM_SHRINK + ZipArchive::CM_REDUCE_1 + ZipArchive::CM_REDUCE_2 + ZipArchive::CM_REDUCE_3 + ZipArchive::CM_REDUCE_4 + ZipArchive::CM_IMPLODE + ZipArchive::CM_DEFLATE + ZipArchive::CM_DEFLATE64 + ZipArchive::CM_PKWARE_IMPLODE + ZipArchive::ER_OK + ZipArchive::FL_NOCASE + ZipArchive::FL_NODIR + ZipArchive::FL_COMPRESSED + ZipArchive::FL_UNCHANGED + ZipArchive::CM_DEFAULT + ZipArchive::CM_STORE + ZipArchive::CM_SHRINK + ZipArchive::CM_REDUCE_1 + ZipArchive::CM_REDUCE_2 + ZipArchive::CM_REDUCE_3 + ZipArchive::CM_REDUCE_4 + ZipArchive::CM_IMPLODE + ZipArchive::CM_DEFLATE + ZipArchive::CM_DEFLATE64 + ZipArchive::CM_PKWARE_IMPLODE + ZipArchive::ER_OK + ZipArchive::ER_MULTIDISK + ZipArchive::ER_RENAME + ZipArchive::ER_CLOSE + ZipArchive::ER_SEEK + ZipArchive::ER_READ + ZipArchive::ER_WRITE + ZipArchive::ER_CRC + ZipArchive::ER_ZIPCLOSED + ZipArchive::ER_NOENT + ZipArchive::ER_EXISTS + ZipArchive::ER_OPEN + ZipArchive::ER_TMPOPEN + ZipArchive::ER_ZLIB + ZipArchive::ER_MEMORY + ZipArchive::ER_CHANGED + ZipArchive::ER_COMPNOTSUPP + ZipArchive::ER_EOF + ZipArchive::ER_INVAL + ZipArchive::ER_NOZIP + ZipArchive::ER_INTERNAL + ZipArchive::ER_INCONS + ZipArchive::ER_REMOVE + ZipArchive::ER_DELETED +Methods: + resource zip_open(string filename) +- Create new zip using source uri for output + void zip_close(resource zip) +- Close a Zip archive + resource zip_read(resource zip) +- Returns the next file in the archive + bool zip_entry_open(resource zip_dp, resource zip_entry [, string mode]) +- Open a Zip File, pointed by the resource entry + void zip_entry_close(resource zip_ent) +- Close a zip entry + mixed zip_entry_read(resource zip_entry [, int len]) +- Read from an open directory entry + string zip_entry_name(resource zip_entry) +- Return the name given a ZZip entry + int zip_entry_compressedsize(resource zip_entry) +- Return the compressed size of a ZZip entry + int zip_entry_filesize(resource zip_entry) +- Return the actual filesize of a ZZip entry + string zip_entry_compressionmethod(resource zip_entry) +- Return a string containing the compression method used on a particular entry + mixed ZipArchive::open(string source [, int flags]) +- Create new zip using source uri for output, return TRUE on success or the error code + void ZipArchive::close() +- close the zip archive + bool ZipArchive::addFile(string filepath[, string entryname[, int start [, int length]]]) +- Add a file in a Zip archive using its path and the name to use + bool ZipArchive::addFromString(string name, string content) +- Add a file using content and the entry name + array ZipArchive::statName(string filename[, int flags]) +- Returns the information about a the zip entry filename + array ZipArchive::statIndex(int index[,
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Wed Oct 25 12:40:23 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: Add a note reffering to the new feature section (lukas) http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.23r2=1.1.2.24diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.23 php-src/README.UPDATE_5_2:1.1.2.24 --- php-src/README.UPDATE_5_2:1.1.2.23 Wed Oct 25 12:19:13 2006 +++ php-src/README.UPDATE_5_2 Wed Oct 25 12:40:23 2006 @@ -124,7 +124,7 @@ The Zip extension enables you to transparently read or write ZIP compressed archives and the files inside them. - Please refer to the PHP Manual for details. + Please refer to the 'NEW FEATURES' below or the PHP Manual for details. - Improved memory manager and increased default memory limit (Dmitry) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Wed Oct 25 12:58:46 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: More curl constants http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.24r2=1.1.2.25diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.24 php-src/README.UPDATE_5_2:1.1.2.25 --- php-src/README.UPDATE_5_2:1.1.2.24 Wed Oct 25 12:40:23 2006 +++ php-src/README.UPDATE_5_2 Wed Oct 25 12:58:46 2006 @@ -810,6 +810,13 @@ New global constants: = ext/curl +- CURLE_LDAP_INVALID_URL +- CURLE_FILESIZE_EXCEEDED +- CURLE_FTP_SSL_FAILED +- CURLOPT_FTPSSLAUTH +- CURLFTPAUTH_DEFAULT +- CURLFTPAUTH_SSL +- CURLFTPAUTH_TLS - CURLOPT_FTP_SSL - CURLFTPSSL_NONE - CURLFTPSSL_TRY -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Tue Oct 24 20:54:08 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: Add sections: backwards incompatible error messages new functions/methods/classes/constants/optional parameters http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.16r2=1.1.2.17diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.16 php-src/README.UPDATE_5_2:1.1.2.17 --- php-src/README.UPDATE_5_2:1.1.2.16 Fri Oct 6 21:03:35 2006 +++ php-src/README.UPDATE_5_2 Tue Oct 24 20:54:07 2006 @@ -175,4 +175,380 @@ warning messages, instead retuning an un-expected return value of false. As of PHP 5.2 this operation will emit E_WARNING as is the case in all other instance where division by zero is performed. - \ No newline at end of file + +== +Backwards incompatible changes +== + +?php +/* PHP Warning: bzopen(): filename cannot be empty in /usr/src/php/examples/bzopen.no.filename.php on line 3 */ +bzopen(, w); +? + +?php +/* PHP Warning: bzopen(): 'a' is not a valid mode for bzopen(). Only 'w' and 'r' are supported. in /usr/src/php/examples/bzopen.wrong.stream.mode.php on line 3 */ +bzopen(foo, a); + +$fp = fopen(foo, a); +/* PHP Warning: bzopen(): cannot read from a stream opened in write only mode in /usr/src/php/examples/bzopen.wrong.stream.mode.php on line 7 */ +bzopen($fp, r); +? + +?php +/* PHP Warning: Invalid access mode -1 in /usr/src/php/examples/dbase.invalid.access.mode.php on line 3 */ +dbase_open(foo, -1); +? + +?php +/* PHP Fatal error: Class bar cannot implement previously implemented interface foo in /usr/src/php/examples/impliment.implemented.php on line 4 */ +interface foo { +} +class bar implements foo, foo { +} +? + +?php +class foo { + public $bar; + function __get($var) + { + return $this-bar; + } +} + +$foo = new foo; +/* PHP Notice: Indirect modification of overloaded property foo::$prop has no effect in /usr/src/php/examples/indirect.modification.of.overloaded.property.php on line 12 */ +$bar = $foo-prop; +? + +?php +class foo implements iterator { +public function current() { + +} +public function next() { + +} +public function key() { + +} +public function valid() { + +} +public function rewind() { + +} +} + +$foo = new foo(); +/* PHP Fatal error: An iterator cannot be used with foreach by reference in /usr/src/php/examples/iterator.foreach.by_ref.php on line 22 */ +foreach($foo as $ref) { +} +? + +?php +$key = this is a secret key; + +$td = mcrypt_module_open('tripledes', '', 'ecb', ''); +$iv = mcrypt_create_iv (mcrypt_enc_get_iv_size($td), MCRYPT_RAND); +mcrypt_generic_init($td, $key, $iv); +/* PHP Warning: An empty string was passed in /usr/src/php/examples/mcrypt.generic.empty.string.php on line 8 */ +$encrypted_data = mcrypt_generic($td, ); +? + +?php +/* PHP Warning: Division by zero in /usr/src/php/examples/modulus.by.zero.php on line 3 */ +print 10%0; + +? + +?php +/* PHP Warning: Invalid character set name: bogus_charset in /usr/src/php/examples/oci.bogus.charset.php on line 3 */ +oci_connect(user, pass, db, bogus_charset); +? + +?php +$oci = oci_connect(user, pass, db); +/* PHP Warning: username cannot be empty in /usr/src/php/examples/oci.no.empty.username.php on line 4 */ +oci_password_change($oci, , old, new); +/* PHP Warning: old password cannot be empty in /usr/src/php/examples/oci.no.empty.username.php on line 6 */ +oci_password_change($oci, user, , new); +/* PHP Warning: new password cannot be empty in /usr/src/php/examples/oci.no.empty.username.php on line 8 */ +oci_password_change($oci, user, old, ); +? + +?php +class foo { +private function __construct() { +} +} +class bar extends foo { +public function __construct() { +/* PHP Fatal error: Cannot call private foo::__construct() in /usr/src/php/examples/private.ctor.php on line 9 */ +parent::__construct(); +} +} +new bar; +? + +?php +echo ; +/* PHP Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in /usr/src/php/examples/session.cannot.regenerate.id.php on line 4 */ +session_regenerate_id(); + +? + +?php +$obj = new SplFileObject(__FILE__); +/* PHP Warning: SplFileObject::fgetcsv(): delimiter must be a character in /usr/src/php/examples/splfileobj.csv.must.be.char.php on line 4 */ +$obj-fgetcsv(foo); +/* PHP Warning: SplFileObject::fgetcsv(): enclosure must be a character in /usr/src/php/examples/splfileobj.csv.must.be.char.php on line 6 */ +$obj-fgetcsv(,, foo); + +? + +?php +/* PHP Strict Standards: Static function foo::bar() should not be abstract in /usr/src/php/examples/static.abstract.method.php on line 3 */ +abstract class foo { +abstract static function bar(); +} + +? + +?php +/* PHP Warning: stream_filter_register(): Filter name cannot be empty in
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Tue Oct 24 21:08:53 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: mention php_errormsg bc break.. http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.17r2=1.1.2.18diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.17 php-src/README.UPDATE_5_2:1.1.2.18 --- php-src/README.UPDATE_5_2:1.1.2.17 Tue Oct 24 20:54:07 2006 +++ php-src/README.UPDATE_5_2 Tue Oct 24 21:08:53 2006 @@ -180,6 +180,13 @@ Backwards incompatible changes == +Misc + +- $php_errormsg now prepends the function name causing the error +- $php_errormsg doesn't get populated anymore when using custom error handler + +Error messages +== ?php /* PHP Warning: bzopen(): filename cannot be empty in /usr/src/php/examples/bzopen.no.filename.php on line 3 */ bzopen(, w); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Tue Oct 24 21:16:24 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: session_set_cookie_params new param http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.18r2=1.1.2.19diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.18 php-src/README.UPDATE_5_2:1.1.2.19 --- php-src/README.UPDATE_5_2:1.1.2.18 Tue Oct 24 21:08:53 2006 +++ php-src/README.UPDATE_5_2 Tue Oct 24 21:16:24 2006 @@ -554,8 +554,8 @@ - string base64_decode(string str[, bool strict=false]) (strict) - bool setcookie(string name [, string value [, int expires [, string path [, string domain [, bool secure[, bool httponly=false]] (httponly) - bool setrawcookie(string name [, string value [, int expires [, string path [, string domain [, bool secure[, bool httponly=false]] (httponly) + - void session_set_cookie_params(int lifetime [, string path [, string domain [, bool secure[, bool httponly) (httponly) - int memory_get_usage([bool real_usage=false]) (real_usage) - boolean XMLReader::open(string URI [, string encoding [, int options]]) (encoding, options) - boolean XMLReader::XML(string source [, string encoding [, int options]]) (encoding, options) - -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
Hannes, hi, Did Ilia request this? Only, not to put a damper on your commendable enthusiasm, but most of this kind of thing goes into the NEWS file already. The point of having an UPDATE readme file was to highlight the things people _need_ to be aware of because they're impacting on PHP's expected behaviour in some way. 'Incompatible error messages' should probably stay (need to check), but new optional parameters (and new everything elses) really don't fall into that category, and will just clutter up the file IMHO. - Steph - Original Message - From: Hannes Magnusson [EMAIL PROTECTED] To: php-cvs@lists.php.net Sent: Tuesday, October 24, 2006 10:54 PM Subject: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 bjori Tue Oct 24 20:54:08 2006 UTC Modified files: (Branch: PHP_5_2) /php-src README.UPDATE_5_2 Log: Add sections: backwards incompatible error messages new functions/methods/classes/constants/optional parameters PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1380 (20060125) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Tue Oct 24 21:32:29 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: New INI entrys php-cli searching php.ini bc break http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.19r2=1.1.2.20diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.19 php-src/README.UPDATE_5_2:1.1.2.20 --- php-src/README.UPDATE_5_2:1.1.2.19 Tue Oct 24 21:16:24 2006 +++ php-src/README.UPDATE_5_2 Tue Oct 24 21:32:29 2006 @@ -184,6 +184,7 @@ - $php_errormsg now prepends the function name causing the error - $php_errormsg doesn't get populated anymore when using custom error handler +- PHP-CLI does no longer search in cwd for php.ini Error messages == @@ -559,3 +560,9 @@ - boolean XMLReader::open(string URI [, string encoding [, int options]]) (encoding, options) - boolean XMLReader::XML(string source [, string encoding [, int options]]) (encoding, options) +New INI settings: += +pcre.backtrack_limit PHP_INI_ALL, default: 10 +pcre.recursion_limit PHP_INI_ALL, default: 10 +session.cookie_httponly PHP_INI_ALL, default: false +allow_url_include PHP_INI_SYSTEM, default: false -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
On 24-Oct-06, at 5:19 PM, Steph Fox wrote: Hannes, hi, Did Ilia request this? I did not request it, but it is a good idea to have and I did approve it before Hannes committed it. Only, not to put a damper on your commendable enthusiasm, but most of this kind of thing goes into the NEWS file already. The point of having an UPDATE readme file was to highlight the things people _need_ to be aware of because they're impacting on PHP's expected behaviour in some way. 'Incompatible error messages' should probably stay (need to check), but new optional parameters (and new everything elses) really don't fall into that category, and will just clutter up the file IMHO. - Steph - Original Message - From: Hannes Magnusson [EMAIL PROTECTED] To: php-cvs@lists.php.net Sent: Tuesday, October 24, 2006 10:54 PM Subject: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 bjori Tue Oct 24 20:54:08 2006 UTC Modified files: (Branch: PHP_5_2) /php-src README.UPDATE_5_2 Log: Add sections: backwards incompatible error messages new functions/methods/classes/constants/optional parameters PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1380 (20060125) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Ilia Alshanetsky -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Tue Oct 24 21:43:51 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: New constants http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.20r2=1.1.2.21diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.20 php-src/README.UPDATE_5_2:1.1.2.21 --- php-src/README.UPDATE_5_2:1.1.2.20 Tue Oct 24 21:32:29 2006 +++ php-src/README.UPDATE_5_2 Tue Oct 24 21:43:51 2006 @@ -566,3 +566,43 @@ pcre.recursion_limit PHP_INI_ALL, default: 10 session.cookie_httponly PHP_INI_ALL, default: false allow_url_include PHP_INI_SYSTEM, default: false + +New global constants: += + ext/curl +- CURLOPT_FTP_SSL +- CURLFTPSSL_NONE +- CURLFTPSSL_TRY +- CURLFTPSSL_CONTROL +- CURLFTPSSL_ALL + + ext/openssl +- OPENSSL_VERSION_TEXT +- OPENSSL_VERSION_NUMBER + + ext/pcre +- PREG_NO_ERROR +- PREG_INTERNAL_ERROR +- PREG_BACKTRACK_LIMIT_ERROR +- PREG_RECURSION_LIMIT_ERROR +- PREG_BAD_UTF8_ERROR + + ext/pdo +- FETCH_PROPS_LATE +- ATTR_DEFAULT_FETCH_MODE + + ext/snmp +- SNMP_OID_OUTPUT_FULL +- SNMP_OID_OUTPUT_NUMERIC + + ext/standard +- M_SQRTPI +- M_LNPI +- M_EULER +- M_SQRT3 +- PATHINFO_FILENAME +- UPLOAD_ERR_EXTENSION + + ext/sysvmsg +- MSG_EAGAIN +- MSG_ENOMSG -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
Hello Steph, I like his changes. Nobody reads the NEWS as they don't help at all unless you look for specific bugs that hurt you to be fixed or not. The changes Hannes did now are very good for the vast user base. So I pretty much like it. Given it has headlines people can see what to read and what not. best regards marcus Tuesday, October 24, 2006, 11:19:01 PM, you wrote: Hannes, hi, Did Ilia request this? Only, not to put a damper on your commendable enthusiasm, but most of this kind of thing goes into the NEWS file already. The point of having an UPDATE readme file was to highlight the things people _need_ to be aware of because they're impacting on PHP's expected behaviour in some way. 'Incompatible error messages' should probably stay (need to check), but new optional parameters (and new everything elses) really don't fall into that category, and will just clutter up the file IMHO. - Steph - Original Message - From: Hannes Magnusson [EMAIL PROTECTED] To: php-cvs@lists.php.net Sent: Tuesday, October 24, 2006 10:54 PM Subject: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 bjori Tue Oct 24 20:54:08 2006 UTC Modified files: (Branch: PHP_5_2) /php-src README.UPDATE_5_2 Log: Add sections: backwards incompatible error messages new functions/methods/classes/constants/optional parameters PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1380 (20060125) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Best regards, Marcus -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Tue Oct 24 21:51:15 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: Silly me. those PDO constants are class constants #thanks ilia \o/ http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.21r2=1.1.2.22diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.21 php-src/README.UPDATE_5_2:1.1.2.22 --- php-src/README.UPDATE_5_2:1.1.2.21 Tue Oct 24 21:43:51 2006 +++ php-src/README.UPDATE_5_2 Tue Oct 24 21:51:15 2006 @@ -484,6 +484,9 @@ CachingIterator::TOSTRING_USE_INNER CachingIterator::FULL_CACHE + PDO::FETCH_PROPS_LATE + PDO::ATTR_DEFAULT_FETCH_MODE + New functions: == @@ -587,10 +590,6 @@ - PREG_RECURSION_LIMIT_ERROR - PREG_BAD_UTF8_ERROR - ext/pdo -- FETCH_PROPS_LATE -- ATTR_DEFAULT_FETCH_MODE - ext/snmp - SNMP_OID_OUTPUT_FULL - SNMP_OID_OUTPUT_NUMERIC -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
Fine, one less job for me then :) On 24-Oct-06, at 5:19 PM, Steph Fox wrote: Hannes, hi, Did Ilia request this? I did not request it, but it is a good idea to have and I did approve it before Hannes committed it. Only, not to put a damper on your commendable enthusiasm, but most of this kind of thing goes into the NEWS file already. The point of having an UPDATE readme file was to highlight the things people _need_ to be aware of because they're impacting on PHP's expected behaviour in some way. 'Incompatible error messages' should probably stay (need to check), but new optional parameters (and new everything elses) really don't fall into that category, and will just clutter up the file IMHO. - Steph - Original Message - From: Hannes Magnusson [EMAIL PROTECTED] To: php-cvs@lists.php.net Sent: Tuesday, October 24, 2006 10:54 PM Subject: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 bjori Tue Oct 24 20:54:08 2006 UTC Modified files: (Branch: PHP_5_2) /php-src README.UPDATE_5_2 Log: Add sections: backwards incompatible error messages new functions/methods/classes/constants/optional parameters PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1380 (20060125) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Ilia Alshanetsky -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
iliaa Fri Oct 6 21:03:35 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: modulo 0 news entry http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.15r2=1.1.2.16diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.15 php-src/README.UPDATE_5_2:1.1.2.16 --- php-src/README.UPDATE_5_2:1.1.2.15 Mon Sep 11 23:11:18 2006 +++ php-src/README.UPDATE_5_2 Fri Oct 6 21:03:35 2006 @@ -168,3 +168,11 @@ unpredictable behavior due to an un-expected configuration file being read. This functionality was removed in 5.2 and PHP will no longer search CWD for the presence of the php.ini or the php-cli.ini files. + +- Added a notice when performing modulus 0 operation (Tony) + + In earlier versions of PHP performing integer % 0 did not emit any + warning messages, instead retuning an un-expected return value of false. + As of PHP 5.2 this operation will emit E_WARNING as is the case in all + other instance where division by zero is performed. + \ No newline at end of file -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
iliaa Mon Sep 11 14:10:18 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: Upgrading updates from Steph http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.13r2=1.1.2.14diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.13 php-src/README.UPDATE_5_2:1.1.2.14 --- php-src/README.UPDATE_5_2:1.1.2.13 Sun Sep 10 22:59:28 2006 +++ php-src/README.UPDATE_5_2 Mon Sep 11 14:10:18 2006 @@ -1,60 +1,162 @@ -PHP 5.2 Update info or NEWS explained +PHP 5.2 UPDATE INFO -- Changed E_ALL error reporting mode to include E_RECOVERABLE_ERROR. (Marcus) +=== +Changes in PHP datetime support +=== - This change means that the value of the E_ALL constant has changed to 6143 - from its previous value of 2047. If you are setting your error reporting mode - inside the Apache config file or the .htaccess files you will need to adjust - the value of the error_reporting INI setting accordingly. +Since PHP 5.1, there has been an extension named 'date' in the PHP core. This +is the new implementation of PHP's datetime support. Although it will attempt +to guess your system's timezone setting, you should set the timezone manually. +You can do this in any of three ways: + +1) in your php.ini using the date.timezone INI directive +2) on your system using the TZ environmental variable +3) from your script using the convenience function date_default_timezone_set() + +All supported timezones are listed in the PHP Manual at +http://www.php.net/manual/timezones.php. + +With the advent of PHP 5.2, there are object representations of the date and +timezone, named DateTime and DateTimeZone respectively. You can see the methods +and constants available to the new classes by running + +php --rc DateTime +php --rc DateTimeZone + +under PHP CLI. All methods map to existing procedural date functions. + +== +Items from the NEWS file explained +== - Added new error mode E_RECOVERABLE_ERROR. (Derick, Marcus, Tony) - This changes a few E_ERROR conditions to something that you can now catch - using a user error handler. If the user error handler does not grab these - kind of errors they behave as fatal errors just like in any PHP version prior - to 5.2. Errors of this type are logged as 'Catchable fatal error'. + Some of the existing E_ERROR conditions have been converted to something that + you can catch with a user-defined error handler. If an E_RECOVERABLE_ERROR is + not handled, it will behave in the same way as E_ERROR behaves in all versions + of PHP. Errors of this type are logged as 'Catchable fatal error'. + + +- Changed E_ALL error reporting mode to includes E_RECOVERABLE_ERROR. (Marcus) + + This change means that the value of the E_ALL error_reporting constant is now + 6143, where its previous value was 2047. If you are setting the error_reporting + mode from either the Apache config file or the .htaccess files, you will need + to adjust the value accordingly. The same applies if you use the numeric value + rather than the constant in your PHP scripts. + - Added support for constructors in interfaces to force constructor signature checks in implementations. (Marcus) - - Starting with PHP 5.2 interfaces can have constructors. If you use this - feature then all implementing classes must implement constructors with a - matching signature, while normally constructors do not need to follow any - base class or interface constructor signature. (Signature is the name for - the parameter and return type definition which captures count, reference or - not and any type hints). + + Starting with PHP 5.2, interfaces can have constructors. However, if you choose + to declare a constructor in an interface, each class implementing that interface + MUST include a constructor with a signature matching that of the base interface + constructor. By 'signature' we mean the parameter and return type definitions, + including any type hints and including whether the data is passed by reference + or by value. + - Changed __toString to be called wherever applicable. (Marcus) - The magic object method __toString() is now called whenever an object is used - as a string. The function must not throw an exception or the script will be - terminated with a catchable see above) fatal error. The PHP 5.0/5.1 fallback - to return a string containing the object identifier has been dropped. People - were assuming that this object identifier was unique when in fact it wasn't. - - Even with __toString objects cannot be used as keys to arrays. We might add - built-in hash support for this. But for 5.2 you would need to either provide - your own hashing and use an explicit string cast or use new function - spl_object_hash() + The magic method __toString() will now be called in
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
iliaa Mon Sep 11 23:11:18 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: Typo fix from Steph Added note about CLI and INI search path http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.14r2=1.1.2.15diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.14 php-src/README.UPDATE_5_2:1.1.2.15 --- php-src/README.UPDATE_5_2:1.1.2.14 Mon Sep 11 14:10:18 2006 +++ php-src/README.UPDATE_5_2 Mon Sep 11 23:11:18 2006 @@ -37,7 +37,7 @@ of PHP. Errors of this type are logged as 'Catchable fatal error'. -- Changed E_ALL error reporting mode to includes E_RECOVERABLE_ERROR. (Marcus) +- Changed E_ALL error reporting mode to include E_RECOVERABLE_ERROR. (Marcus) This change means that the value of the E_ALL error_reporting constant is now 6143, where its previous value was 2047. If you are setting the error_reporting @@ -160,3 +160,11 @@ variable be accessed in write mode. To work around this, you should either cast the returned value from __get() to an array, or use SPL's ArrayObject instead of an array. + +- CLI SAPI no longer checks cwd for php.ini or the php-cli.ini file (Edin) + + In PHP 5.1.X an undocumented feature was added that made the CLI binary + check the current directory for PHP configuration file possibly leading to + unpredictable behavior due to an un-expected configuration file being + read. This functionality was removed in 5.2 and PHP will no longer search + CWD for the presence of the php.ini or the php-cli.ini files. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
bjori Sun Sep 10 22:59:28 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: dissallowing-disallowing http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.12r2=1.1.2.13diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.12 php-src/README.UPDATE_5_2:1.1.2.13 --- php-src/README.UPDATE_5_2:1.1.2.12 Sat Sep 9 17:03:48 2006 +++ php-src/README.UPDATE_5_2 Sun Sep 10 22:59:28 2006 @@ -51,7 +51,7 @@ remote files and inclusion of remote files. While the former is usually desired, the latter implies security risks if used naively. Starting with PHP-5.2 it is now possible to allow standard file operations while - dissallowing inclusion of remote files, which is also the default + disallowing inclusion of remote files, which is also the default configuration now. - Dropped abstract static class functions. (Marcus) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
rasmus Sat Sep 9 16:54:01 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: Cleanup http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.9r2=1.1.2.10diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.9 php-src/README.UPDATE_5_2:1.1.2.10 --- php-src/README.UPDATE_5_2:1.1.2.9 Thu Sep 7 21:17:13 2006 +++ php-src/README.UPDATE_5_2 Sat Sep 9 16:54:01 2006 @@ -1,6 +1,6 @@ PHP 5.2 Update info or NEWS explained -- Changed E_ALL error reporting mode to includes E_RECOVERABLE_ERROR. (Marcus) +- Changed E_ALL error reporting mode to include E_RECOVERABLE_ERROR. (Marcus) This changes means that the value of the E_ALL constant had changed to 6143 from its previous value of 2047. If you are setting your error reporting mode @@ -11,7 +11,7 @@ This changes a few E_ERROR conditions to something that you can now catch using a user error handler. If the user error handler does not grab these - kind of error they behave as fatal errors just like in any PHP version prior + kind of errors they behave as fatal errors just like in any PHP version prior to 5.2. Errors of this type are logged as 'Catchable fatal error'. - Added support for constructors in interfaces to force constructor signature @@ -24,24 +24,24 @@ the parameter and return type definition which captures count, reference or not and any type hints). -- Changed __toString to be called whereever applicable. (Marcus) +- Changed __toString to be called wherever applicable. (Marcus) The magic object method __toString() is now called whenever an object is used as a string. The function must not throw an exception or the script will be - terminated. The PHP 5.0/5.1 fallback to return a string containing the object - idetifier has been dropped. Note that the object identifier is never unique. - That measn that if you have used this feature your application has been - flawed. Nonetheless it will now be a catchable fatal error (see above). + terminated with a catchable see above) fatal error. The PHP 5.0/5.1 fallback + to return a string containing the object identifier has been dropped. People + were assuming that this object identifier was unique when in fact it wasn't. Even with __toString objects cannot be used as keys to arrays. We might add built-in hash support for this. But for 5.2 you would need to either provide - your own hashing or use new function spl_object_hash() + your own hashing and use an explicit string cast or use new function + spl_object_hash() - Added RFC2397 (data: stream) support. (Marcus) Under windows this can mean a very rare change of behavior. If you are using - NTFS filesystem and making use of meta streams in your application this does - no longer work for a file with the name 'data:' accessed without any path. If + NTFS filesystem and making use of meta streams in your application this no + longer works for a file with the name 'data:' accessed without any path. If you need to do so you have to prefix the filename with the file: protocol. For the functionality itself look here http://www.faqs.org/rfcs/rfc2397.html. @@ -49,10 +49,10 @@ With this option one can now distinguish between standard file operations on remote files and inclusion of remote files. While the former is usually - desired, the latter implies security risks if used naivly. Starting with + desired, the latter implies security risks if used naively. Starting with PHP-5.2 it is now possible to allow standard file operations while - dissalowing inclusion of remote files, which will also be the default - configuration. + dissallowing inclusion of remote files, which is also the default + configuration now. - Dropped abstract static class functions. (Marcus) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
rasmus Sat Sep 9 17:02:56 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: One more typo http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.10r2=1.1.2.11diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.10 php-src/README.UPDATE_5_2:1.1.2.11 --- php-src/README.UPDATE_5_2:1.1.2.10 Sat Sep 9 16:54:01 2006 +++ php-src/README.UPDATE_5_2 Sat Sep 9 17:02:56 2006 @@ -2,7 +2,7 @@ - Changed E_ALL error reporting mode to include E_RECOVERABLE_ERROR. (Marcus) - This changes means that the value of the E_ALL constant had changed to 6143 + This change means that the value of the E_ALL constant had changed to 6143 from its previous value of 2047. If you are setting your error reporting mode inside the Apache config file or the .htaccess files you will need to adjust the value of error_reporting INI setting accordingly. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
rasmus Sat Sep 9 17:03:48 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: Fix tense http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.11r2=1.1.2.12diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.11 php-src/README.UPDATE_5_2:1.1.2.12 --- php-src/README.UPDATE_5_2:1.1.2.11 Sat Sep 9 17:02:56 2006 +++ php-src/README.UPDATE_5_2 Sat Sep 9 17:03:48 2006 @@ -2,10 +2,10 @@ - Changed E_ALL error reporting mode to include E_RECOVERABLE_ERROR. (Marcus) - This change means that the value of the E_ALL constant had changed to 6143 + This change means that the value of the E_ALL constant has changed to 6143 from its previous value of 2047. If you are setting your error reporting mode inside the Apache config file or the .htaccess files you will need to adjust - the value of error_reporting INI setting accordingly. + the value of the error_reporting INI setting accordingly. - Added new error mode E_RECOVERABLE_ERROR. (Derick, Marcus, Tony) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
helly Thu Sep 7 21:17:13 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: - Fix tiny mistake http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.8r2=1.1.2.9diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.8 php-src/README.UPDATE_5_2:1.1.2.9 --- php-src/README.UPDATE_5_2:1.1.2.8 Mon Aug 7 08:34:40 2006 +++ php-src/README.UPDATE_5_2 Thu Sep 7 21:17:13 2006 @@ -41,7 +41,7 @@ Under windows this can mean a very rare change of behavior. If you are using NTFS filesystem and making use of meta streams in your application this does - no longer work for a file with the name 'data' accessed without any path. IF + no longer work for a file with the name 'data:' accessed without any path. If you need to do so you have to prefix the filename with the file: protocol. For the functionality itself look here http://www.faqs.org/rfcs/rfc2397.html. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
helly Mon Aug 7 08:34:41 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: - Update http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.7r2=1.1.2.8diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.7 php-src/README.UPDATE_5_2:1.1.2.8 --- php-src/README.UPDATE_5_2:1.1.2.7 Mon Jul 24 12:15:28 2006 +++ php-src/README.UPDATE_5_2 Mon Aug 7 08:34:40 2006 @@ -28,10 +28,14 @@ The magic object method __toString() is now called whenever an object is used as a string. The function must not throw an exception or the script will be - terminated. The PHP 5.0/%51 fallback to return a string containing the object + terminated. The PHP 5.0/5.1 fallback to return a string containing the object idetifier has been dropped. Note that the object identifier is never unique. That measn that if you have used this feature your application has been flawed. Nonetheless it will now be a catchable fatal error (see above). + + Even with __toString objects cannot be used as keys to arrays. We might add + built-in hash support for this. But for 5.2 you would need to either provide + your own hashing or use new function spl_object_hash() - Added RFC2397 (data: stream) support. (Marcus) @@ -49,3 +53,8 @@ PHP-5.2 it is now possible to allow standard file operations while dissalowing inclusion of remote files, which will also be the default configuration. + +- Dropped abstract static class functions. (Marcus) + + Due to an oversight PHP 5.0, 5.1 allowed abstract static functions. In PHP + 5.2 only interfaces can have abstract static functions. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
mikeMon Jul 24 12:15:28 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: - note about allow_url_include http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.6r2=1.1.2.7diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.6 php-src/README.UPDATE_5_2:1.1.2.7 --- php-src/README.UPDATE_5_2:1.1.2.6 Sun Jul 23 18:51:23 2006 +++ php-src/README.UPDATE_5_2 Mon Jul 24 12:15:28 2006 @@ -40,3 +40,12 @@ no longer work for a file with the name 'data' accessed without any path. IF you need to do so you have to prefix the filename with the file: protocol. For the functionality itself look here http://www.faqs.org/rfcs/rfc2397.html. + +- Added allow_url_include ini directive to complement allow_url_fopen. (Rasmus) + + With this option one can now distinguish between standard file operations on + remote files and inclusion of remote files. While the former is usually + desired, the latter implies security risks if used naivly. Starting with + PHP-5.2 it is now possible to allow standard file operations while + dissalowing inclusion of remote files, which will also be the default + configuration. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
helly Sun Jul 23 18:51:23 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: - This was reintroduced by Zeev # I could need help in writing this file. Actually i know why i didn't want # to start it in the first place. http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.5r2=1.1.2.6diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.5 php-src/README.UPDATE_5_2:1.1.2.6 --- php-src/README.UPDATE_5_2:1.1.2.5 Thu May 25 10:20:56 2006 +++ php-src/README.UPDATE_5_2 Sun Jul 23 18:51:23 2006 @@ -14,12 +14,6 @@ kind of error they behave as fatal errors just like in any PHP version prior to 5.2. Errors of this type are logged as 'Catchable fatal error'. -- Removed ze1 compatibility mode. (Marcus) - - The backwards compatibility support for the old PHP 4.x object handling that - uses copying by default instead of the 5.x reference handling has been - removed completley. - - Added support for constructors in interfaces to force constructor signature checks in implementations. (Marcus) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
If someone pokes me before release I'll clean up the English. You just worry about the tech side ;) - Original Message - From: Marcus Boerger [EMAIL PROTECTED] To: php-cvs@lists.php.net Sent: Sunday, July 23, 2006 8:51 PM Subject: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 helly Sun Jul 23 18:51:23 2006 UTC Modified files: (Branch: PHP_5_2) /php-src README.UPDATE_5_2 Log: - This was reintroduced by Zeev # I could need help in writing this file. Actually i know why i didn't want # to start it in the first place. http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.5r2=1.1.2.6diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.5 php-src/README.UPDATE_5_2:1.1.2.6 --- php-src/README.UPDATE_5_2:1.1.2.5 Thu May 25 10:20:56 2006 +++ php-src/README.UPDATE_5_2 Sun Jul 23 18:51:23 2006 @@ -14,12 +14,6 @@ kind of error they behave as fatal errors just like in any PHP version prior to 5.2. Errors of this type are logged as 'Catchable fatal error'. -- Removed ze1 compatibility mode. (Marcus) - - The backwards compatibility support for the old PHP 4.x object handling that - uses copying by default instead of the 5.x reference handling has been - removed completley. - - Added support for constructors in interfaces to force constructor signature checks in implementations. (Marcus) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1380 (20060125) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
iliaa Sun May 21 15:50:31 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: Added a note about E_RECOVERABLE_ERROR being a part of E_ALL. http://cvs.php.net/viewcvs.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.3r2=1.1.2.4diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.3 php-src/README.UPDATE_5_2:1.1.2.4 --- php-src/README.UPDATE_5_2:1.1.2.3 Sun May 14 19:58:04 2006 +++ php-src/README.UPDATE_5_2 Sun May 21 15:50:31 2006 @@ -1,5 +1,12 @@ PHP 5.2 Update info or NEWS explained +- As of PHP 5.2 the E_ALL error reporting mode includes the E_RECOVERABLE_ERROR. + + This changes means that the value of the E_ALL constant had changed to 6143 + from its previous value of 2047. If you are setting your error reporting mode + inside the Apache config file or the .htaccess files you will need to adjust + the value of error_reporting INI setting accordingly. + - Added new error mode E_RECOVERABLE_ERROR. (Derick, Marcus, Tony) This changes a few E_ERROR conditions to something that you can now catch -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
helly Sun May 14 19:23:19 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: - Add some update notes http://cvs.php.net/viewcvs.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.1r2=1.1.2.2diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.1 php-src/README.UPDATE_5_2:1.1.2.2 --- php-src/README.UPDATE_5_2:1.1.2.1 Sun May 14 00:29:08 2006 +++ php-src/README.UPDATE_5_2 Sun May 14 19:23:19 2006 @@ -1 +1,40 @@ -To be filled... +PHP 5.2 Update info or NEWS explained + +- Added new error mode E_RECOVERABLE_ERROR. (Derick, Marcus, Tony) + + This changes a few E_ERROR conditions to something that you can now catch + using a user error handler. If the user error handler does not grab these + kind of error they behave as fatal errors just like in any PHP version prior + to 5.2. Errors of this type are logged as 'Catchable fatal error'. + +- Removed ze1 compatibility mode. (Marcus) + + The backwards compatibility support for the old PHP 4.x object handling that + uses copying by default instead of the 5.x reference handling has been + removed completley. + +- Added support for constructors in interfaces to force constructor signature + checks in implementations. (Marcus) + + Starting with PHP 5.2 interfaces can have constructors. If you use this + feature then all implementing classes must implement constructors with a + matching signature, while normally constructors do not need to follow any + base class or interface constructor signature. (Signature is the name for + the parameter and return type definition which captures count, reference or + not and any type hints). + +- Changed __toString to be called whereever applicable. (Marcus) + + The magic object method __toString() is now called whenever an object is used + as a string. The function must not throw an exception or the script will be + terminated. The PHP 5.0/%51 fallback to return a string containing the object + idetifier has been dropped. Note that the object identifier is never unique. + That measn that if you have used this feature your application has been + flawed. Nonetheless it will now be a catchable fatal error (see above). + +- Added RFC2397 (data: stream) support. (Marcus) + + Under windows this can mean a very rare change of behavior. If you are using + NTFS filesystem and making use of meta streams in your application this does + no longer work for a file with the name 'data' accessed without any path. IF + you need to do so you have to prefix the filename with the file: protocol. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
helly Sun May 14 19:58:04 2006 UTC Modified files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: - Update http://cvs.php.net/viewcvs.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.2r2=1.1.2.3diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.2 php-src/README.UPDATE_5_2:1.1.2.3 --- php-src/README.UPDATE_5_2:1.1.2.2 Sun May 14 19:23:19 2006 +++ php-src/README.UPDATE_5_2 Sun May 14 19:58:04 2006 @@ -38,3 +38,4 @@ NTFS filesystem and making use of meta streams in your application this does no longer work for a file with the name 'data' accessed without any path. IF you need to do so you have to prefix the filename with the file: protocol. + For the functionality itself look here http://www.faqs.org/rfcs/rfc2397.html. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2
pajoye Sun May 14 00:29:08 2006 UTC Added files: (Branch: PHP_5_2) /php-srcREADME.UPDATE_5_2 Log: - initial commit Please fill it :) http://cvs.php.net/viewcvs.cgi/php-src/README.UPDATE_5_2?view=markuprev=1.1 Index: php-src/README.UPDATE_5_2 +++ php-src/README.UPDATE_5_2 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php