php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70532 Run and quit mode (-rr) should respect set_exception_handler
Submitted: 2015-09-19 22:41 UTC Modified: 2015-09-21 16:52 UTC
From: j dot tvr at centrum dot cz Assigned: bwoebi (profile)
Status: Closed Package: phpdbg
PHP Version: 7.0.0RC3 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: j dot tvr at centrum dot cz
New email:
PHP Version: OS:

 

 [2015-09-19 22:41 UTC] 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>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-09-21 16:52 UTC] bwoebi@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: bwoebi
 [2015-09-21 16:52 UTC] bwoebi@php.net
General problem that set_exception_handler isn't executed, even after continuing...
 [2015-09-23 15:53 UTC] bwoebi@php.net
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)
 [2015-09-23 15:53 UTC] bwoebi@php.net
-Status: Assigned +Status: Closed
 [2015-09-23 16:30 UTC] bwoebi@php.net
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)
 [2015-09-29 13:10 UTC] ab@php.net
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)
 [2016-07-20 11:36 UTC] davey@php.net
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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 01:01:30 2024 UTC