Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16127 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94348 invoked by uid 1010); 28 Apr 2005 14:54:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94299 invoked from network); 28 Apr 2005 14:54:04 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 28 Apr 2005 14:54:04 -0000 X-Host-Fingerprint: 209.161.72.28 theta.altoona-pa.com Linux 2.4/2.6 Received: from ([209.161.72.28:41834] helo=theta.altoona-pa.com) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id 89/06-20173-A09F0724 for ; Thu, 28 Apr 2005 10:54:04 -0400 Received: from ionzoft-avb (static-207-68-114-163.alt.east.verizon.net [207.68.114.163]) by theta.altoona-pa.com (Postfix) with ESMTP id D8B4213DB3 for ; Thu, 28 Apr 2005 10:53:44 -0400 (EDT) Date: Thu, 28 Apr 2005 10:53:46 -0400 X-Mailer: The Bat! (v2.00) CD5BF9353B3B7091 Reply-To: Andrew Bidochko X-Priority: 3 (Normal) Message-ID: <1798490093.20050428105346@ionzoft.com> To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Undefined property access in PHP 5.0.4 with Zend Debugger v3.5.2 From: andrew@ionzoft.com (Andrew Bidochko) 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