summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_022.phpt
blob: b1ffebc0b4407072cb087a3fd016d60824f18e93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Closure 022: Closure properties
--FILE--
<?php
$a = 0;
$foo = function() use ($a) {
};
$foo->a = 1;
?>
--EXPECTF--
Fatal error: Uncaught Error: Closure object cannot have properties in %sclosure_022.php:5
Stack trace:
#0 {main}
  thrown in %sclosure_022.php on line 5