Home » File Formats » File_Gettext » Bug #5712
Only variables can be passed by reference
Details
| Submitted | 2005-10-18 08:40 UTC |
|---|---|
| From | cryptographite at comcast dot net |
| Assigned | mike |
| Status | Closed |
| Package | File_Gettext |
| PHP Version | 5.0.5 |
| OS | FreeBSD |
| Roadmaps | (Not assigned) |
Comments
[2005-10-18 08:40 UTC] cryptographite at comcast dot net
Description:
------------
Only variables can be passed by reference.
The code "array_shift(unpack())" is used in several locations thoughout File_Gettext. This is illegal syntax as unpack() is a function return, not a variable.
unpack must be assigned to a variable before being run through array_shift()
[2005-10-18 18:30 UTC] cryptographite at comcast dot net
$ php -r "echo current(array(1));"
PHP Fatal error: Only variables can be passed by reference in Command line code on line 1