xref: /PHP-5.3/Zend/tests/closure_017.phpt (revision a142b6cd)
1--TEST--
2Closure 017: Trying to destroy an active lambda function
3--FILE--
4<?php
5
6$a = function(&$a) { $a = 1; };
7
8$a($a);
9
10?>
11--EXPECTF--
12Fatal error: Cannot destroy active lambda function in %s on line %d
13