Bug #70532 [Asn->Csd]: Run and quit mode (-rr) should respect set_exception_handler
| From: | bwoebi@php.net | Date: | Wed, 23 Sep 2015 15:53:36 +0000 |
| Subject: | Bug #70532 [Asn->Csd]: Run and quit mode (-rr) should respect set_exception_handler | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-196188@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70532&edit=1
ID: 70532
Updated by: bwoebi@php.net
Reported by: j dot tvr at centrum dot cz
Summary: Run and quit mode (-rr) should respect
set_exception_handler
-Status: Assigned
+Status: Closed
Type: Bug
Package: phpdbg
PHP Version: 7.0.0RC3
Assigned To: bwoebi
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of bobwei9@hotmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4a174ca7e602fb20d12b8b665eaf3ce5d4d46bd3
Log: Fixed bug #70532 (respect set_exception_handler in phpdbg)
Previous Comments:
------------------------------------------------------------------------
[2015-09-21 16:52:55] bwoebi@php.net
General problem that set_exception_handler isn't executed, even after continuing...
------------------------------------------------------------------------
[2015-09-19 22:41:21] j dot tvr at centrum dot cz
Description:
------------
phpdbg SAPI ignores set_exception_handler even though it is running in "run and quit mode
(-rr)".
Test script:
---------------
phpdbg -qrr test.php; echo $?
<?php
set_exception_handler(function () { echo "EX\n"; });
throw new Exception();
Expected result:
----------------
EX
0
Actual result:
--------------
[Uncaught Exception in ...]
...
prompt>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70532&edit=1