]> granicus.if.org Git - php/commit
Fixed bug #75921
authorDavid Walker <dave@mudsite.com>
Thu, 15 Feb 2018 05:06:34 +0000 (22:06 -0700)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 14 Feb 2019 11:50:25 +0000 (12:50 +0100)
commite63febb1c772e15c1da891f00e3a343090e43c67
tree995c82b1627d266332e6cf1dfa8eca8cfce7c2a2
parentdab54624842e76350bb6f5e71a8ef0f53ed34630
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).
NEWS
Zend/tests/bug52041.phpt
Zend/tests/bug71539_5.phpt
Zend/tests/bug75921.phpt [new file with mode: 0644]
Zend/tests/objects_020.phpt
Zend/tests/type_declarations/typed_properties_091.phpt
Zend/zend_execute.c
ext/simplexml/tests/bug36611.phpt
tests/lang/engine_assignExecutionOrder_008.phpt
tests/lang/foreachLoop.016.phpt
tests/lang/passByReference_006.phpt