closure_031.phpt 296 B

12345678910111213141516
  1. --TEST--
  2. Closure 031: Closure properties with custom error handlers
  3. --FILE--
  4. <?php
  5. function foo($errno, $errstr, $errfile, $errline) {
  6. echo "Error: $errstr\n";
  7. }
  8. set_error_handler('foo');
  9. $foo = function() {
  10. };
  11. var_dump($foo->a);
  12. ?>
  13. --EXPECT--
  14. Error: Closure object cannot have properties
  15. NULL