#39645 [Opn->Bgs]: Fatal error: Only variables can be passed by reference
| From: | tony2001@php.net | Date: | Mon, 27 Nov 2006 15:46:29 +0000 |
| Subject: | #39645 [Opn->Bgs]: Fatal error: Only variables can be passed by reference | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105487@lists.php.net to get a copy of this message | ||
ID: 39645
Updated by: tony2001@php.net
Reported By: owahab at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Windows 2003
PHP Version: 4.4.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2006-11-27 15:39:32] owahab at gmail dot com
Description:
------------
tested on windows 2003, Linux Debian, FreeBSD: a page produces the
error: Fatal error: only variables can be passed by reference in
/path/to/my/script/file.php line xyz
ONLY on windows.
Reproduce code:
---------------
function foo(&$x){
return $x;
}
function bar($a, $b){
return array_merge($arr1+$arr2);
}
$arr = array(1,2,3);
bar($arr, foo(array(4,5,6)));
Expected result:
----------------
Fatal error: only variables can be passed by reference in line x [the
one with bar() called]
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39645&edit=1