Annotation of embedaddon/php/Zend/tests/closure_024.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Closure 024: Trying to clone the Closure object
                      3: --FILE--
                      4: <?php
                      5: 
                      6: $a = function () { 
                      7:        return clone function () {
                      8:                return 1;
                      9:        };
                     10: };
                     11: 
                     12: $a();
                     13: 
                     14: ?>
                     15: --EXPECTF--
                     16: Fatal error: Trying to clone an uncloneable object of class Closure in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>