From: cunha17 at uol dot com dot br Operating system: linux (RH9) PHP version: 5CVS-2003-06-21 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: Crash when using __get,__set or __call and raising exceptions
Description: ------------ When any exception is raised inside a __get, __set or __call it leads to a segmentation fault even if the exception is thrown inside a try/catch statement. Reproduce code: --------------- class test { function __get($propname) { throw new Exception("TEST"); } } $t = new test(); echo $t->ok; Expected result: ---------------- An "Fatal error: Uncaught exception 'exception'! in Unknown on line 0" or somethig like that is the exception is not caught. Actual result: -------------- Segmentation fault (core dumped) -- Edit bug report at http://bugs.php.net/?id=24279&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24279&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24279&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24279&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24279&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24279&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24279&r=support Expected behavior: http://bugs.php.net/fix.php?id=24279&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24279&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24279&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24279&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24279&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24279&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24279&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24279&r=gnused