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