note 35792 deleted from function.current by bjori
| From: | bjori@php.net | Date: | Mon, 24 Apr 2006 15:13:57 +0000 |
| Subject: | note 35792 deleted from function.current by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-109455@lists.php.net to get a copy of this message | ||
Note Submitter: si
----
current isn't able to return by reference, eg.
function &getDataPacket()
{
global $globalref;
return current( $globalref[ key( $globalref ) ]->dp ); // *FAILS*
return $globalref[ key( $globalref ) ]->dp[ key( $globalref[ key( $globalref ) ]->dp ) ]; //
*WORKS*
}
According to Bug#12692 it's intentional, so watch out!