php-src/Zend/tests/closure_017.phpt
2008-07-14 13:36:40 +00:00

13 lines
207 B
PHP

--TEST--
Closure 017: Trying to destroy an active lambda function
--FILE--
<?php
$a = function(&$a) { $a = 1; };
$a($a);
?>
--EXPECTF--
Fatal error: Cannot destroy active lambda function in %s on line %d