Edit report at https://bugs.php.net/bug.php?id=62550&edit=1

 ID:                 62550
 User updated by:    nabody at nm dot ru
 Reported by:        nabody at nm dot ru
-Summary:            XAMPP  1.7.7   [PHP: 5.3.8]
+Summary:            Exception in Exception
 Status:             Open
 Type:               Bug
 Package:            Class/Object related
 Operating System:   windows
 PHP Version:        5.3.14
 Block user comment: N
 Private report:     N

 New Comment:

XAMPP  1.7.7   [PHP: 5.3.8]


Previous Comments:
------------------------------------------------------------------------
[2012-07-13 12:43:51] nabody at nm dot ru

Description:
------------
Do not handle the exception in the exception.

Test script:
---------------
set_exception_handler(function($e){
 set_exception_handler(function($e){echo $e->getMessage();});
 echo $e->getMessage();
 throw new Exception('Fail 2');
});
throw new Exception('Fail 1');

Expected result:
----------------
Fail 1
Fail 2

Actual result:
--------------
Fail 1
Fatal error: Uncaught exception 'Exception' with message 'Fail 2' in ...


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62550&edit=1

Reply via email to