php-src/Zend/tests/closure_022.phpt

13 lines
217 B
Plaintext
Raw Normal View History

2008-07-22 07:29:14 +00:00
--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
2008-07-22 07:29:14 +00:00