Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9887 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20695 invoked by uid 1010); 17 May 2004 04:20:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20639 invoked by uid 1007); 17 May 2004 04:20:15 -0000 To: internals@lists.php.net User-Agent: Microsoft-Entourage/10.1.4.030702.0 Message-ID: Mime-version: 1.0 X-Associated-WebSite: http://www.peakepro.com Content-Type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Lines: 66 Date: Mon, 17 May 2004 02:52:19 GMT X-Posted-By: 192.252.1.51 Subject: Advanced OO Topic From: robert@peakepro.com (Robert Peake) Hi, I notice a strange behavior in PHP4 and wonder if anyone can explain it. Essentially, when I extend a class from a built-in module, I can add and access variables but can not access new functions I create within the extended class. This has only happened attempting to extend classes from ming, but I suspect it may be a universal problem (?). That is: bar(); //PRINTS "bar" ?> Works as expected, however, in: running: x; //WORKS; PRINTS "10" $foo->bar(); //RETURNS "Undefined Function" FATAL ERROR ?> Can anyone explain this behavior? Will it be fixed in PHP5? Is it related to the Zend engine? Any workarounds? Many thanks in advance. Best, Robert -- Robert Peake | Peake Professional Consulting Robert@PeakePro.com | http://www.peakepro.com/