Req #70531 [Com]: Run and quit mode (-rr) should not fallback to interactive mode

From: Date: Thu, 01 Oct 2015 18:08:25 +0000
Subject: Req #70531 [Com]: Run and quit mode (-rr) should not fallback to interactive mode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196332@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70531&edit=1 ID: 70531 Comment by: j dot tvr at centrum dot cz Reported by: j dot tvr at centrum dot cz Summary: Run and quit mode (-rr) should not fallback to interactive mode Status: Closed Type: Feature/Change Request Package: phpdbg PHP Version: 7.0.0RC3 Assigned To: bwoebi Block user comment: N Private report: N New Comment: Another use-case where it will fallback to interactive mode: <?php set_exception_handler(function () { exit(123); }); throw new Exception(); Previous Comments: ------------------------------------------------------------------------ [2015-10-01 17:51:15] j dot tvr at centrum dot cz I tested RC4 and it works fine except for two problems * the exit code is incorrect (https://bugs.php.net/bug.php?id=70614) * it still ends-up in interactive-mode when the script contains parse error (e.g. <?php $->) – can you reopen this or should I send new bug report? ------------------------------------------------------------------------ [2015-09-29 13:10:41] ab@php.net Automatic comment on behalf of bobwei9@hotmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=bccac3774bade617d88da45e7f1781151bb16160 Log: Fixed bug #70531 (-rr should not fallback to interactive mode in phpdbg) ------------------------------------------------------------------------ [2015-09-23 16:30:55] bwoebi@php.net Automatic comment on behalf of bobwei9@hotmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=bccac3774bade617d88da45e7f1781151bb16160 Log: Fixed bug #70531 (-rr should not fallback to interactive mode in phpdbg) ------------------------------------------------------------------------ [2015-09-23 16:30:20] bwoebi@php.net Automatic comment on behalf of bobwei9@hotmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=bccac3774bade617d88da45e7f1781151bb16160 Log: Fixed bug #70531 (-rr should not fallback to interactive mode in phpdbg) ------------------------------------------------------------------------ [2015-09-19 22:35:23] j dot tvr at centrum dot cz Description: ------------ Currently having test.php with <?php throw new Exception(); ?> and running phpdbg -qrr test.php will end-up in interactive mode. Test script: --------------- phpdbg -qrr test.php; echo $? <?php throw new Exception(); ?> Expected result: ---------------- Fatal error: Uncaught Exception ... Stack trace: ... 255 Actual result: -------------- prompt> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70531&edit=1

« previous php.bugs (#196332) next »