]> granicus.if.org Git - php/commit
Fix missing access errors for guarded properties
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 27 Sep 2018 12:58:26 +0000 (14:58 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 27 Sep 2018 12:58:26 +0000 (14:58 +0200)
commit5a4cb3edde32a6cc4bce6439abea21f3e6b4bbf6
treedba68f89faa25934ef101ca291289e97467d88bc
parent390b74ee34ac567cab7d6b07b130a16504bbc43c
Fix missing access errors for guarded properties

If a property access would normally result in a magic method call,
but the property is subject to an active recursion guard, the
access should behave as if the magic method does not exist.

This commit fixes one instance where this was not the case -- we
should have been generating a property access error, but instead
the operation simply did not do anything.
Zend/tests/bug38461.phpt
Zend/tests/bug48248.phpt
Zend/tests/property_access_errors_for_guarded_properties.phpt [new file with mode: 0644]
Zend/zend_object_handlers.c