summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_031.phpt
blob: dace4a4e737f91ecee36aca17a4f9e21f0415d57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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