File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug65254.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 08:02:49 2013 UTC (11 years, 6 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, HEAD
v 5.4.20

    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>