php-src/Zend/tests/closure_022.phpt
Dmitry Stogov a4a3ed44bb - Made closures implementation reflection friendly (Christian)
- Changed E_ERROR(s) into E_RECOVERABLE_ERROR(s) (Marcus)
2008-08-11 08:49:00 +00:00

13 lines
217 B
PHP
Executable File

--TEST--
Closure 022: Closure properties
--FILE--
<?php
$a = 0;
$foo = function() use ($a) {
};
$foo->a = 1;
?>
--EXPECTF--
Catchable fatal error: Closure object cannot have properties in %sclosure_022.php on line 5