|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-27 15:46 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 01:00:01 2025 UTC |
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]