File size: 286 Bytes
1e94262 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | --TEST--
errmsg: only variables can be passed by reference
--FILE--
<?php
function foo (&$var) {
}
foo(1);
echo "Done\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: foo(): Argument #1 ($var) could not be passed by reference in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
|