Annotation of embedaddon/php/Zend/tests/anonymous_func_003.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Using throw $var with anonymous function return
        !             3: --FILE--
        !             4: <?php 
        !             5: 
        !             6: try {
        !             7:        $a = create_function('', 'return new Exception("test");');
        !             8:        throw $a();
        !             9: } catch (Exception $e) {
        !            10:        var_dump($e->getMessage() == 'test');
        !            11: }
        !            12: 
        !            13: ?>
        !            14: --EXPECT--
        !            15: bool(true)

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