diff options
author | Felipe Pena <felipe@php.net> | 2008-07-14 13:39:32 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-07-14 13:39:32 +0000 |
commit | 8e4029512ad3ae24e9bdc7511a256f3524f34088 (patch) | |
tree | 217f6ffd51ada5e459dbaaade0b03750d5b2deda /Zend/tests/closure_017.phpt | |
parent | ae22f8a5d9e37c23d4f51ccc60393b37bce36d24 (diff) | |
download | php-git-8e4029512ad3ae24e9bdc7511a256f3524f34088.tar.gz |
- New tests
Diffstat (limited to 'Zend/tests/closure_017.phpt')
-rw-r--r-- | Zend/tests/closure_017.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/closure_017.phpt b/Zend/tests/closure_017.phpt new file mode 100644 index 0000000000..45a07f9441 --- /dev/null +++ b/Zend/tests/closure_017.phpt @@ -0,0 +1,12 @@ +--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 |