errmsg_022.phpt 213 B

1234567891011121314
  1. --TEST--
  2. errmsg: only variables can be passed by reference
  3. --FILE--
  4. <?php
  5. function foo (&$var) {
  6. }
  7. foo(1);
  8. echo "Done\n";
  9. ?>
  10. --EXPECTF--
  11. Fatal error: Only variables can be passed by reference in %s on line %d