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

1.1     ! misho       1: --TEST--
        !             2: Bug #65254 (Exception not catchable when exception thrown in autoload with a namespace)
        !             3: --FILE--
        !             4: <?php
        !             5: function __autoload($class)
        !             6: {
        !             7:     eval("namespace ns_test; class test {}");
        !             8: 
        !             9:     throw new \Exception('abcd');
        !            10: }
        !            11: 
        !            12: try
        !            13: {
        !            14:     \ns_test\test::go();
        !            15: }
        !            16: catch (Exception $e)
        !            17: {
        !            18:     echo 'caught';
        !            19: }
        !            20: --EXPECT--
        !            21: caught

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