ID:               39645
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to