Re: Passing-by-reference

From: Date: Fri, 24 Nov 2000 08:36:41 +0000
Subject: Re: Passing-by-reference
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-39083@lists.php.net to get a copy of this message
I haven't commited the patch which fixes it yet :) I wanted to get input before I do so. Andi At 02:35 AM 11/24/00 +0100, André Langhorst wrote:
7) foo($obj->method());
unfortunately this still does not work... <?php function &bar() {
        $i=1;
        return $i; }
class testclass {
        function testclass()    {
                $this->foo(bar()); }
        function foo(&$bar)     {       }
                }
?> andré --
· André Langhorst       · t: +49 571 3201801 ·
· waldschrott@php.net · m: +49 173 9558736 · · PHP Quality Assurance · http://qa.php.net ·
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.dev (#39083) next »