Undefined property access in PHP 5.0.4 with Zend Debugger v3.5.2

From: Date: Thu, 28 Apr 2005 14:53:46 +0000
Subject: Undefined property access in PHP 5.0.4 with Zend Debugger v3.5.2
Groups: php.internals 
Request: Send a blank email to internals+get-16127@lists.php.net to get a copy of this message
Hello in, Recently I enjoyed utilizing undefined properties set/get for object with overloaded property access. That functionality became available in PHP 5.0.4 after bug #28444 fix. But when I switch to use php 5.0.4 together with Zend Debugger v3.5.2 that behavior is broken. I've got fatal error: Cannot access undefined property for object with overloaded property access in...". Can you advise me what is the real problem in my case and good solution for it. Thanks. ---------------------------------- How to reproduce the problem. Server Configuration: Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.4, Copyright (c) 2003-2004, by Zend Technologies with Zend Optimizer v2.5.5, Copyright (c) 1998-2004, by Zend Technologies with Zend Debugger v3.5.2, Copyright (c) 1999-2004, by Zend Technologies Php code: class C1 { private $MyProp = array(); function __set($sName, $eValue) { $this->MyProp[$sName] = $eValue; } function __get($sName) { return $this->MyProp[$sName]; } } $oTemp = new C1(); $oTemp->Prop1 = new C1(); $oTemp->Prop1->Prop2 = 'Value'; // This fails with ZEND debugger var_dump($oTemp); ?> -- Best regards, Andrew mailto:andrew@ionzoft.com

« previous php.internals (#16127) next »