diff options
author | Scott MacVicar <scottmac@php.net> | 2010-12-31 16:57:45 +0000 |
---|---|---|
committer | Scott MacVicar <scottmac@php.net> | 2010-12-31 16:57:45 +0000 |
commit | 6144da7e351545158db3fad647b818b1027354f7 (patch) | |
tree | fc988d0b79b3385551482b0f0ca071763a4b8114 /Zend/tests/bug52614.phpt | |
parent | c9c0de49a8f56b940a4d2142408f19f1f1821f7d (diff) | |
download | php-git-6144da7e351545158db3fad647b818b1027354f7.tar.gz |
Silently casting an empty string, null or false into an object by adding a property
is pretty non-intuitive. If the same value was 1 or true you get a warning and it halts.
Since we can't break BC completely (yet) lets bump this from E_STRICT.
Also added a new section to UPGRADING for engine changes.
<?php
$x = '';
// $x = null;
// $x = false;
$x->baz = 1;
var_dump($x);
$y = 1;
$y->baz = 1;
var_dump($y);
Diffstat (limited to 'Zend/tests/bug52614.phpt')
-rw-r--r-- | Zend/tests/bug52614.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/tests/bug52614.phpt b/Zend/tests/bug52614.phpt index 38a210b9a9..d220881679 100644 --- a/Zend/tests/bug52614.phpt +++ b/Zend/tests/bug52614.phpt @@ -72,7 +72,7 @@ array(0) { array(0) { } -Strict Standards: Creating default object from empty value in %sbug52614.php on line 52 +Warning: Creating default object from empty value in %sbug52614.php on line 52 NULL object(stdClass)#%d (1) { ["a"]=> |