#42572 [Opn->Bgs]: Exception

From: Date: Thu, 06 Sep 2007 06:20:22 +0000
Subject: #42572 [Opn->Bgs]: Exception
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-117202@lists.php.net to get a copy of this message
 ID:               42572
 Updated by:       derick@php.net
 Reported By:      lgynove at 163 dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: windows xp
 PHP Version:      5.2.4
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php

You can't throw an exception from an exception handler.


Previous Comments:
------------------------------------------------------------------------

[2007-09-06 04:36:17] lgynove at 163 dot com

Description:
------------
run it then you see...

Reproduce code:
---------------
<?php
function a()
{
	b();
}
function b()
{
	throw new Exception('');
}
set_exception_handler('a');
throw new Exception('');

Expected result:
----------------
run it then you see...

Actual result:
--------------
run it then you see...


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


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


Thread (2 messages)

« previous php.bugs (#117202) next »