stas Wed, 23 Nov 2011 21:21:10 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=319726
Log: Sorted engine changes by severity and added chained string offset description. Changed paths: U php/php-src/branches/PHP_5_4/UPGRADING Modified: php/php-src/branches/PHP_5_4/UPGRADING =================================================================== --- php/php-src/branches/PHP_5_4/UPGRADING 2011-11-23 20:44:23 UTC (rev 319725) +++ php/php-src/branches/PHP_5_4/UPGRADING 2011-11-23 21:21:10 UTC (rev 319726) @@ -86,21 +86,6 @@ 3. Changes made to engine behaviour =================================== -- Changed E_ALL to include E_STRICT. - -- Closures now support scopes and $this and can be rebound to - objects using Closure::bind() and Closure::bindTo(). - -- Turning null, false or empty string into an object by adding a property - will now emit a warning instead of an E_STRICT error. - - $test = null; - $test->baz = 1; - - To create a generic object you can use StdClass: - $test = new StdClass; - $test->baz = 1; - - It's now possible to enforce the class' __construct arguments in an abstract constructor in the base class. @@ -119,8 +104,26 @@ names, thereby shadowing the corresponding superglobal. This now causes a fatal error such as "Cannot re-assign auto-global variable GLOBALS". +- Turning null, false or empty string into an object by adding a property + will now emit a warning instead of an E_STRICT error. + + $test = null; + $test->baz = 1; + + To create a generic object you can use StdClass: + $test = new StdClass; + $test->baz = 1; + - Converting array to string now will cause E_NOTICE warning. +- Chained string offsets - e.g. $a[0][0] where $a is a string - now work, which +means isset($a['foo']['bar']) now will return true due to automatic type conversion. + +- Changed E_ALL to include E_STRICT. + +- Closures now support scopes and $this and can be rebound to + objects using Closure::bind() and Closure::bindTo(). + - Added multibyte support by default. Now it can be enabled or disabled through zend.multibyte directive in php.ini.
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php