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