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:[EMAIL PROTECTED]

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to