Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.2

Bug #5712 Only variables can be passed by reference
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)    
Subscription  


 [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()

Comments

 [2005-10-18 10:31 UTC] mike
Could you please check if current(array(1)) works with PHP-5.0.5?
 [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
 [2005-11-08 18:57 UTC] mike
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.