Bug #63462 [NEW]: Magic methods called twice for unset protected properties
From: ocramius at gmail dot com
Operating system: Irrelevant
PHP version: 5.4.8
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Magic methods called twice for unset protected properties
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 bug report at https://bugs.php.net/bug.php?id=63462&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63462&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63462&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63462&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63462&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63462&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63462&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63462&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63462&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63462&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63462&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63462&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63462&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63462&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63462&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63462&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63462&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63462&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63462&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63462&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63462&r=mysqlcfg
Thread (6 messages)
- ocramius at gmail dot com