Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38125 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94373 invoked from network); 10 Jun 2008 04:56:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2008 04:56:29 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.46.28 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 74.125.46.28 yw-out-2324.google.com Received: from [74.125.46.28] ([74.125.46.28:58364] helo=yw-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/61-17320-B790E484 for ; Tue, 10 Jun 2008 00:56:28 -0400 Received: by yw-out-2324.google.com with SMTP id 5so1293764ywb.83 for ; Mon, 09 Jun 2008 21:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=4Cgdcz1JxiFgY77gd9gsR/ALcGqmw0WruNrdl1mjiSw=; b=KzOQW2Ybal/YT7btfBHdgRMuEnmp5qRMAH15DXT5kyn6HTiiNs2N5SK/dpfuQdyPj0 PW2UjD+h4E2WWZmQIqe9EDj8IO3Z2/IbmqTd3tBTKVitZXe16dE4clG0OzYPlE3UJ1xH 6j9VQxN6SfrQc1uA5DawqmIAJSVZnN7RqBgbc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ciXolRQ3oJaRHzUzy28+m2r1CTNesZFF4aqk91/e+EaRG3PnPwKuc2JyoimviB/TFc L4LOXv+QzyW8imY8UIZH/GmJ3yTwKhceLzAhFaVjTZcv0QLQWfBLrfKMsRPlChi4dGxj DUcI70qkWlHhuKsfH63LV5S3PR3/eJ5YE0ZwQ= Received: by 10.151.14.4 with SMTP id r4mr7677146ybi.199.1213073785164; Mon, 09 Jun 2008 21:56:25 -0700 (PDT) Received: by 10.150.158.8 with HTTP; Mon, 9 Jun 2008 21:56:25 -0700 (PDT) Message-ID: Date: Tue, 10 Jun 2008 08:56:25 +0400 To: christoph@christophdorn.com Cc: internals@lists.php.net In-Reply-To: <484E0318.2040405@christophdorn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <484E0318.2040405@christophdorn.com> Subject: Re: [PHP-DEV] Calling original function from an overloaded function From: indeyets@gmail.com ("Alexey Zakhlestin") Well, speaking in broad terms, I would suggest to store the pointer to original function before overloading it, and calling that, when you need it On 6/10/08, Christoph Dorn wrote: > 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 > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Alexey Zakhlestin http://blog.milkfarmsoft.com/