xref: /PHP-7.4/Zend/tests/errmsg_022.phpt (revision 782352c5)
1--TEST--
2errmsg: only variables can be passed by reference
3--FILE--
4<?php
5
6function foo (&$var) {
7}
8
9foo(1);
10
11echo "Done\n";
12?>
13--EXPECTF--
14Fatal error: Only variables can be passed by reference in %s on line %d
15