summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2010-12-31 16:57:45 +0000
committerScott MacVicar <scottmac@php.net>2010-12-31 16:57:45 +0000
commit6144da7e351545158db3fad647b818b1027354f7 (patch)
treefc988d0b79b3385551482b0f0ca071763a4b8114 /NEWS
parentc9c0de49a8f56b940a4d2142408f19f1f1821f7d (diff)
downloadphp-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 'NEWS')
-rw-r--r--NEWS2
1 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 01c664b908..6f63542f97 100644
--- a/NEWS
+++ b/NEWS
@@ -27,6 +27,8 @@ PHP NEWS
- Changed array_combine() to return empty array instead of FALSE when both
parameter arrays are empty. FR #34857. (joel.perras@gmail.com)
- Changed third parameter of preg_match_all() to optional. FR #53238. (Adam)
+- Changed silent casting of null/''/false into an Object when adding
+ a property into a warning. (Scott)
- General improvements:
. Added multibyte suppport by default. Previosly php had to be compiled