Skip to content

Commit

Permalink
Merge branch 'issue1102-php-r-debug-crash' into xdebug_2_2
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Jan 29, 2015
2 parents 00700b3 + 4d36ccc commit c1ac304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdebug_handler_dbgp.c
Expand Up @@ -2554,7 +2554,7 @@ int xdebug_dbgp_init(xdebug_con *context, int mode)
xdebug_xml_add_text(child, xdstrdup(XDEBUG_COPYRIGHT));
xdebug_xml_add_child(response, child);

if (strcmp(context->program_name, "-") == 0) {
if (strcmp(context->program_name, "-") == 0 || strcmp(context->program_name, "Command line code") == 0) {
xdebug_xml_add_attribute_ex(response, "fileuri", xdstrdup("dbgp://stdin"), 0, 1);
} else {
xdebug_xml_add_attribute_ex(response, "fileuri", xdebug_path_to_url(context->program_name TSRMLS_CC), 0, 1);
Expand Down

0 comments on commit c1ac304

Please sign in to comment.