Skip to content

Commit 02e76b4

Browse files
committed
Merged pull request xdebug#1002
2 parents 79b951f + 065334f commit 02e76b4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/debugger/handler_dbgp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2331,6 +2331,7 @@ static int xdebug_dbgp_cmdloop(xdebug_con *context, int bail)
23312331

23322332
option = xdebug_fd_read_line_delim(context->socket, context->buffer, FD_RL_SOCKET, '\0', &length);
23332333
if (!option) {
2334+
xdebug_mark_debug_connection_not_active();
23342335
return 0;
23352336
}
23362337

tests/debugger/bug01931-003.phpt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ $commands = array(
1717
'context_get -d 0',
1818
'context_get -d 1',
1919
'context_get -d 2',
20+
'stop',
2021
);
2122

2223
$settings = [
@@ -49,3 +50,7 @@ dbgpRunFile( $filename, $commands, $settings );
4950
-> context_get -i 5 -d 2
5051
<?xml version="1.0" encoding="iso-8859-1"?>
5152
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="5" context="0"><property name="$array" fullname="$array" type="array" children="1" numchildren="3" page="0" pagesize="32"><property name="0" fullname="$array[0]" type="string" size="3" encoding="base64"><![CDATA[b25l]]></property><property name="1" fullname="$array[1]" type="string" size="3" encoding="base64"><![CDATA[dHdv]]></property><property name="2" fullname="$array[2]" type="string" size="5" encoding="base64"><![CDATA[dGhyZWU=]]></property></property><property name="$main_local" fullname="$main_local" type="int"><![CDATA[42]]></property></response>
53+
54+
-> stop -i 6
55+
<?xml version="1.0" encoding="iso-8859-1"?>
56+
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stop" transaction_id="6" status="stopped" reason="ok"></response>

0 commit comments

Comments
 (0)