PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » File_Gettext » Bug #5712

Only variables can be passed by reference

Details

Submitted2005-10-18 08:40 UTC
Fromcryptographite at comcast dot net
Assignedmike
StatusClosed
PackageFile_Gettext
PHP Version5.0.5
OSFreeBSD
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