func_get_arg.004.phpt 234 B

12345678910111213141516
  1. --TEST--
  2. func_get_arg on non-existent arg
  3. --FILE--
  4. <?php
  5. function foo($a)
  6. {
  7. var_dump(func_get_arg(2));
  8. }
  9. foo(2, 3);
  10. echo "\n";
  11. ?>
  12. --EXPECTF--
  13. Warning: func_get_arg(): Argument 2 not passed to function in %s on line %d
  14. bool(false)