mirror of
https://github.com/php/php-src.git
synced 2024-10-17 22:42:38 +00:00
17 lines
296 B
Plaintext
17 lines
296 B
Plaintext
|
--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
|
||
|
|