Bug #70776 [Ver->Csd]: phpdbg: terminating script by ctrl+c returns to prompt in -rr mode

From: Date: Sun, 16 Oct 2016 11:48:05 +0000
Subject: Bug #70776 [Ver->Csd]: phpdbg: terminating script by ctrl+c returns to prompt in -rr mode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204825@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70776&edit=1 ID: 70776 Updated by: bwoebi@php.net Reported by: bugs dot php dot net at majkl578 dot cz Summary: phpdbg: terminating script by ctrl+c returns to prompt in -rr mode -Status: Verified +Status: Closed Type: Bug Package: phpdbg Operating System: Linux PHP Version: 7.0.0RC5 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=e93eaee1648a55d3d58788e2b898e8fb00f0c13c Log: Fixed bug #70776 (Simple SIGINT does not have any effect) Previous Comments: ------------------------------------------------------------------------ [2015-10-27 14:42:17] bwoebi@php.net Usually single ctrl+c halts on next opcode; double ctrl+c is halting the program immediately, in the middle of whatever it is doing. I'm unsure whether to allow single ctrl+c to halt the program in -qrr mode or force termination... ------------------------------------------------------------------------ [2015-10-23 12:36:27] bugs dot php dot net at majkl578 dot cz Description: ------------ When terminating a running script under phpdbg by ctrl+c, the execution does not stop, but falls back to phpdbg prompt. Also it requires double ctrl+c, first has no effect (not sure if that is a bug as well though). Tested with bash and dash. Test script: --------------- <?php for (;;) { echo 1, PHP_EOL; sleep(1); } Actual result: -------------- $ phpdbg -qrr test.php 1 ^C1 ^C[Current opline: in internal function sleep] >00005: sleep(1); 00006: } 00007: prompt> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70776&edit=1

« previous php.bugs (#204825) next »