From: php6developer at ya dot ru
Operating system: Ubuntu 8.10 x64
PHP version: 5.2.9
PHP Bug Type: Class/Object related
Bug description: Problem in undo magic methods.
Description:
------------
Hi all!
Problem in undo magic methods.
Reproduce code:
---------------
---
>From manual page: language.oop5.magic
---
<?php
abstract class Probus_Core_Abstract
{
protected function __get($sName) {
echo 'Abstract->__get';
}
}
// in current class I have unset magic method __get
class Probus_Core_View extends Probus_Core_Abstract
{
}
// create object
$oView = new Probus_Core_View();
// set public dinamical variable
$oView->testvar['num'] = 10;
// print object
var_dump($oView);
?>
Expected result:
----------------
Set variable and no call magic method.
Actual result:
--------------
Print 'Abstract->__get' string and no set variable!
--
Edit bug report at http://bugs.php.net/?id=48033&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48033&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48033&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48033&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48033&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48033&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48033&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48033&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48033&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48033&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48033&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48033&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48033&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48033&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48033&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48033&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48033&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48033&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48033&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48033&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48033&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48033&r=mysqlcfg