Zend 2: return by reference
| From: | SCL List Client | Date: | Mon, 24 Jun 2002 10:43:23 +0000 |
| Subject: | Zend 2: return by reference | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85520@lists.php.net to get a copy of this message | ||
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