Mantis - Quercus
Viewing Issue Advanced Details
3264 block always 01-15-09 12:22 01-15-09 13:40
koreth  
nam  
urgent  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003264: ReflectionFunction::invoke loses exception details
<?php
class MyException extends Exception { }
function doSomething() {
  throw new MyException;
}
$func = new ReflectionFunction('doSomething');
try {
  $func->invoke();
}
catch (Exception $e) {
  print get_class($e);
}

Regular PHP prints "MyException". Quercus prints "Exception".

Notes
(0003735)
koreth   
01-15-09 12:24   
I would imagine ReflectionMethod has the same problem too (haven't verified it).
(0003738)
nam   
01-15-09 13:40   
php/0g0h