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

- Thread: https://externals.io/message/16127
- Original archive: https://news-web.php.net/php.internals/16127
- Started by Andrew Bidochko on 2005-04-28T14:53:46+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #16127 — Andrew Bidochko — 2005-04-28T14:53:46+00:00

URL: https://externals.io/message/16127#16127

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

---

## #16128 — Derick Rethans — 2005-04-28T15:03:46+00:00

URL: https://externals.io/message/16127#16128 · In reply to: #16127

>   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.

Complain with the Zend people? The PHP dev team has nothing to do with 
their extensions.

Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org
