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