diff options
Diffstat (limited to 'Zend/tests/closure_031.phpt')
-rw-r--r-- | Zend/tests/closure_031.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Zend/tests/closure_031.phpt b/Zend/tests/closure_031.phpt new file mode 100644 index 0000000..dace4a4 --- /dev/null +++ b/Zend/tests/closure_031.phpt @@ -0,0 +1,16 @@ +--TEST-- +Closure 031: Closure properties with custom error handlers +--FILE-- +<?php +function foo($errno, $errstr, $errfile, $errline) { + echo "Error: $errstr\n"; +} +set_error_handler('foo'); +$foo = function() { +}; +var_dump($foo->a); +?> +--EXPECT-- +Error: Closure object cannot have properties +NULL + |