diff options
author | Stanislav Malyshev <stas@php.net> | 2011-11-23 21:21:10 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2011-11-23 21:21:10 +0000 |
commit | eca88d3064cfafd2394a6757f25c33572c2b50c3 (patch) | |
tree | ec93a1a22fb44bcbc0f65a9ee8e15b464c056577 /UPGRADING | |
parent | 87a1c1bf47df8427f2e785015b75467068a227d1 (diff) | |
download | php-git-eca88d3064cfafd2394a6757f25c33572c2b50c3.tar.gz |
Sorted engine changes by severity and added chained
string offset description.
Diffstat (limited to 'UPGRADING')
-rwxr-xr-x | UPGRADING | 33 |
1 files changed, 18 insertions, 15 deletions
@@ -86,21 +86,6 @@ UPGRADE NOTES - PHP 5.4 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 @@ UPGRADE NOTES - PHP 5.4 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. |