Home » HTTP » HTTP_Download » Bug #6432
php5 Fatal error Only variables can be passed by reference
Details
| Submitted | 2006-01-06 23:57 UTC |
|---|---|
| From | rexlorenzo at gmail dot com |
| Assigned | mike |
| Status | Closed |
| Package | HTTP_Download |
| PHP Version | 5.0.5 |
| OS | Solaris |
| Roadmaps | (Not assigned) |
Comments
[2006-01-06 23:57 UTC] rexlorenzo at gmail dot com
Description:
------------
I was looking through my error_logs and noticed this
[Fri Jan 6 10:47:17 2006] [error] PHP Fatal error: Only variables can be passed by reference in /path/to/php-5.0.5/lib/php/HTTP/Download.php on line 953
I did some searching and found that in newer versions of PHP starting with 5.05 broke something (http://bugs.php.net/bug.php?id=33643 and http://drupal.org/node/32881).
Example:
function Foo (&data) {
// do stuff here
}
function Bar () {
return "hello world";
}
Foo(Bar()); // here PHP 5.05 gets a fatal error
$bar = Bar();
Foo($bar); // this is what it wants.
Does anyone else get this error? I am using the newest version of HTTP::Download (1.1.0).
[2006-01-07 00:25 UTC] rexlorenzo at gmail dot com
Fixed in Download.php version 1.76, but not in current release.