Edit report at https://bugs.php.net/bug.php?id=63462&edit=1
ID: 63462
User updated by: ocramius at gmail dot com
Reported by: ocramius at gmail dot com
Summary: Magic methods called twice for unset protected
properties
Status: Open
Type: Bug
Package: Scripting Engine problem
Operating System: Irrelevant
PHP Version: 5.4.8
Block user comment: N
Private report: N
New Comment:
I've added the failing test case as a PR at
https://github.com/php/php-src/pull/229
Previous Comments:
------------------------------------------------------------------------
[2012-11-08 05:40:59] ocramius at gmail dot com
Description:
------------
When un-setting a private or protected property of an object, magic methods get
called twice when that property is accessed.
Test script:
---------------
https://gist.github.com/4037010
(will provide PR with the test later)
Expected result:
----------------
Each of the magic methods presented in the test script should be called only
once per checked property.
Actual result:
--------------
Each of the magic methods are called twice for private or protected properties
that were unset.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63462&edit=1