summaryrefslogtreecommitdiff
path: root/Zend/tests/bug52041.phpt
diff options
context:
space:
mode:
authorDavid Walker <dave@mudsite.com>2018-02-14 22:06:34 -0700
committerNikita Popov <nikita.ppv@gmail.com>2019-02-14 12:50:25 +0100
commite63febb1c772e15c1da891f00e3a343090e43c67 (patch)
tree995c82b1627d266332e6cf1dfa8eca8cfce7c2a2 /Zend/tests/bug52041.phpt
parentdab54624842e76350bb6f5e71a8ef0f53ed34630 (diff)
downloadphp-git-e63febb1c772e15c1da891f00e3a343090e43c67.tar.gz
Fixed bug #75921
Ensure that the "creating default object from empty value" warning is always thrown. Previously some cases were missing the warning, in particular those going through FETCH_OBJ_W rather than a dedicated opcode (like ASSIGN_OBJ). One slightly unfortunate side-effect of this change is that something like $a->b->c = 'd' will now generate two warnings rather than one when $a is null (one for property b, one for property c).
Diffstat (limited to 'Zend/tests/bug52041.phpt')
-rw-r--r--Zend/tests/bug52041.phpt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/tests/bug52041.phpt b/Zend/tests/bug52041.phpt
index 7e1f3423a6..a1eb1f841b 100644
--- a/Zend/tests/bug52041.phpt
+++ b/Zend/tests/bug52041.phpt
@@ -31,6 +31,8 @@ Notice: Undefined variable: x in %sbug52041.php on line 3
Warning: Creating default object from empty value in %sbug52041.php on line 7
+Warning: Creating default object from empty value in %sbug52041.php on line 7
+
Notice: Undefined variable: x in %sbug52041.php on line 3
Warning: Creating default object from empty value in %sbug52041.php on line 8
@@ -39,6 +41,8 @@ Notice: Undefined property: stdClass::$a in %sbug52041.php on line 8
Notice: Undefined variable: x in %sbug52041.php on line 3
+Warning: Creating default object from empty value in %sbug52041.php on line 9
+
Notice: Undefined property: stdClass::$a in %sbug52041.php on line 9
Warning: Creating default object from empty value in %sbug52041.php on line 9
@@ -53,6 +57,8 @@ Notice: Undefined property: stdClass::$a in %sbug52041.php on line 10
Notice: Undefined variable: x in %sbug52041.php on line 3
+Warning: Creating default object from empty value in %sbug52041.php on line 11
+
Notice: Undefined property: stdClass::$a in %sbug52041.php on line 11
Warning: Creating default object from empty value in %sbug52041.php on line 11