Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sapi/phpdbg/phpdbg_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ const phpdbg_command_t phpdbg_list_commands[] = {

PHPDBG_LIST(lines) /* {{{ */
{
if (!param) {
phpdbg_error("A line number or file is required");
return SUCCESS;
}

if (!PHPDBG_G(exec) && !zend_is_executing()) {
phpdbg_error("Not executing, and execution context not set");
return SUCCESS;
Expand Down
Loading