Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38124 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89139 invoked from network); 10 Jun 2008 04:29:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2008 04:29:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=christoph@christophdorn.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=christoph@christophdorn.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain christophdorn.com from 24.71.223.10 cause and error) X-PHP-List-Original-Sender: christoph@christophdorn.com X-Host-Fingerprint: 24.71.223.10 idcmail-mo1so.shaw.ca Received: from [24.71.223.10] ([24.71.223.10:37704] helo=pd2mo1so.prod.shaw.ca) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/70-17320-2430E484 for ; Tue, 10 Jun 2008 00:29:54 -0400 Received: from pd2mr1so.prod.shaw.ca (pd2mr1so-qfe3.prod.shaw.ca [10.0.141.110]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0K2800KYYCGPHH60@l-daemon> for internals@lists.php.net; Mon, 09 Jun 2008 22:29:13 -0600 (MDT) Received: from pn2ml10so.prod.shaw.ca ([10.0.121.80]) by pd2mr1so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0K28000RWCGOYH60@pd2mr1so.prod.shaw.ca> for internals@lists.php.net; Mon, 09 Jun 2008 22:29:13 -0600 (MDT) Received: from macbook.home.cadorn.net ([70.72.167.129]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0K2800DXYCGO3Z40@l-daemon> for internals@lists.php.net; Mon, 09 Jun 2008 22:29:12 -0600 (MDT) Date: Mon, 09 Jun 2008 22:29:12 -0600 To: internals@lists.php.net Reply-to: christoph@christophdorn.com Message-ID: <484E0318.2040405@christophdorn.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Enigmail-Version: 0.95.6 User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) Subject: Calling original function from an overloaded function From: christoph@christophdorn.com (Christoph Dorn) I have been looking at xdebug and have figured out how to overload a function. As a test I have overloaded the var_dump function. Now how do I call the original var_dump function from my implementation? Borrowing from OO terminology I have subclassed the var_dump method, now I want to call parent::var_dump() from my subclass. Also how does overloading work when two extensions overload the same function? Can this be done? Is there some sort of order? Can I let the other extension overload the function and then overload the function from the other extension? Any pointers would be greatly appreciated. Thanks Christoph