Bug #70532 [Opn->Asn]: Run and quit mode (-rr) should respect set_exception_handler

From: Date: Mon, 21 Sep 2015 16:52:56 +0000
Subject: Bug #70532 [Opn->Asn]: Run and quit mode (-rr) should respect set_exception_handler
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196137@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: Open +Status: Assigned Type: Bug Package: phpdbg PHP Version: 7.0.0RC3 -Assigned To: +Assigned To: bwoebi Block user comment: N Private report: N New Comment: General problem that set_exception_handler isn't executed, even after continuing... Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#196137) next »