Re: Zend 2: return by reference

From: Date: Mon, 24 Jun 2002 10:51:19 +0000
Subject: Re: Zend 2: return by reference
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-85521@lists.php.net to get a copy of this message
Hi, This is a bug and I think I fixed it in the CVS version of the Engine. Any chance you can grab it and check? In any case, I just want to remind you that you will not want to return objects by reference anymore with Engine 2 only possibly some other datatypes. Andi At 11:43 AM 6/24/2002 +0100, SCL List Client wrote:
Hi, I have a Zend 2 question, I my code I return things from functions by reference e.g. <?php function &myFunc(...) {
        // .. Code....
        return $x;
} $y =& myFunc(...); ?> But now I am trying to use Zend 2 version of php I get the following error: Fatal error: Can't use function return value in write context in /scriptname on line x where x is the line of the actual function call. Has the syntax been changed for returning by reference or is this a bug? Cheers Tom -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.dev (#85521) next »