get_defined_functions_error.phpt 763 B

1234567891011121314151617181920212223242526272829
  1. --TEST--
  2. Test get_defined_functions() function : error conditions
  3. --FILE--
  4. <?php
  5. /* Prototype : array get_defined_functions ( void )
  6. * Description: Gets an array of all defined functions.
  7. * Source code: Zend/zend_builtin_functions.c
  8. */
  9. echo "*** Testing get_defined_functions() : error conditions ***\n";
  10. echo "\n-- Testing get_defined_functions() function with more than expected no. of arguments --\n";
  11. $extra_arg = 10;
  12. var_dump( get_defined_functions($extra_arg) );
  13. ?>
  14. ===Done===
  15. --EXPECTF--
  16. *** Testing get_defined_functions() : error conditions ***
  17. -- Testing get_defined_functions() function with more than expected no. of arguments --
  18. Warning: get_defined_functions() expects exactly 0 parameters, 1 given in %s on line %d
  19. NULL
  20. ===Done===