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

From: Date: Tue, 27 Oct 2015 14:42:19 +0000
Subject: Bug #70776 [Opn->Ver]: 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-196842@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: Open +Status: Verified Type: Bug Package: phpdbg Operating System: Linux PHP Version: 7.0.0RC5 -Assigned To: +Assigned To: bwoebi Block user comment: N Private report: N New Comment: 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... Previous Comments: ------------------------------------------------------------------------ [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 (#196842) next »