View Issue Details

IDProjectCategoryView StatusLast Update
0000251XdebugUncategorizedpublic2007-04-04 12:12
Reporterbhofmann Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionopen 
Summary0000251: Using the source command with an invalid filename returns unexpected result
Description

If I use the dbgp "source" with an invalid filename (the file does not exist for example), instead returning a response tag with the same transaction_id as the command, I get the xdebug callstack return as a stdout stream (as well as to the browser), and a response tag with empty "command" and "transaction_id" attributes.

Additional Information

remote log:
...
<- source -i 120 -f "file:///home%5Cbhofmann%5Cpublic_html%5Ctest.php"
-> <stream type="stdout" encoding="base64"><![CDATA[PGJyIC8+Cjxmb250IHNpemU9JzEnPjx0YWJsZSBib3JkZXI9JzEnIGNlbGxzcGFjaW5nPScwJyBjZWxscGFkZGluZz0nMSc+Cjx0cj48dGggYWxpZ249J2xlZnQnIGJnY29sb3I9JyNmNTc5MDAnIGNvbHNwYW49IjUiPjxzcGFuIHN0eWxlPSdiYWNrZ3JvdW5kLWNvbG9yOiAjY2MwMDAwOyBjb2xvcjogI2ZjZTk0ZjsgZm9udC1zaXplOiB4LWxhcmdlOyc+KCAhICk8L3NwYW4+IFdhcm5pbmc6IHhkZWJ1Z19icmVhaygvaG9tZVxiaG9mbWFublxwdWJsaWNfaHRtbFx0ZXN0LnBocCkgWzxhIGhyZWY9J2Z1bmN0aW9uLnhkZWJ1Zy1icmVhayc+ZnVuY3Rpb24ueGRlYnVnLWJyZWFrPC9hPl06IGZhaWxlZCB0byBvcGVuIHN0cmVhbTogTm8gc3VjaCBmaWxlIG9yIGRpcmVjdG9yeSBpbiAvaG9tZS9iaG9mbWFubi9wdWJsaWNfaHRtbC90ZXN0LnBocCBvbiBsaW5lIDxpPjM8L2k+PC90aD48L3RyPgo8dHI+PHRoIGFsaWduPSdsZWZ0JyBiZ2NvbG9yPScjZTliOTZlJyBjb2xzcGFuPSc0Jz5DYWxsIFN0YWNrPC90aD48L3RyPgo8dHI+PHRoIGFsaWduPSdjZW50ZXInIGJnY29sb3I9JyNlZWVlZWMnPiM8L3RoPjx0aCBhbGlnbj0nbGVmdCcgYmdjb2xvcj0nI2VlZWVlYyc+VGltZTwvdGg+PHRoIGFsaWduPSdsZWZ0JyBiZ2NvbG9yPScjZWVlZWVjJz5GdW5jdGlvbjwvdGg+PHRoIGFsaWduPSdsZWZ0JyBiZ2NvbG9yPScjZWVlZWVjJz5Mb2NhdGlvbjwvdGg+PC90cj4KPHRyPjx0ZCBiZ2NvbG9yPScjZWVlZWVjJyBhbGlnbj0nY2VudGVyJz4xPC90ZD48dGQgYmdjb2xvcj0nI2VlZWVlYycgYWxpZ249J2NlbnRlcic+MS42NTMwPC90ZD48dGQgYmdjb2xvcj0nI2VlZWVlYyc+e21haW59KCAgKTwvdGQ+PHRkIHRpdGxlPScvaG9tZS9iaG9mbWFubi9wdWJsaWNfaHRtbC90ZXN0LnBocCcgYmdjb2xvcj0nI2VlZWVlYyc+Li4vdGVzdC5waHA8Yj46PC9iPjA8L3RkPjwvdHI+Cjx0cj48dGQgYmdjb2xvcj0nI2VlZWVlYycgYWxpZ249J2NlbnRlcic+MjwvdGQ+PHRkIGJnY29sb3I9JyNlZWVlZWMnIGFsaWduPSdjZW50ZXInPjEuNjUzMDwvdGQ+PHRkIGJnY29sb3I9JyNlZWVlZWMnPjxhIGhyZWY9J2h0dHA6Ly93d3cucGhwLm5ldC94ZGVidWdfYnJlYWsnIHRhcmdldD0nX25ldyc+eGRlYnVnX2JyZWFrPC9hPgooICApPC90ZD48dGQgdGl0bGU9Jy9ob21lL2Job2ZtYW5uL3B1YmxpY19odG1sL3Rlc3QucGhwJyBiZ2NvbG9yPScjZWVlZWVjJz4uLi90ZXN0LnBocDxiPjo8L2I+MzwvdGQ+PC90cj4KPC90YWJsZT48L2ZvbnQ+Cg==]]></stream>

-> <response command="" transaction_id="" status="break" reason="exception"><error code="0" exception="Warning"><![CDATA[xdebug_break(/home\bhofmann\public_html\test.php) [<a href='function.xdebug-break'>function.xdebug-break</a>]: failed to open stream: No such file or directory]]></error></response>
...

TagsNo tags attached.
Operating System
PHP Version5.1.6

Activities

derick

2007-04-03 21:33

administrator   ~0000585

I can not reproduce this with latest cvs and php 5.2.2dev. Could you please provide a test script and a full debugging log?

bhofmann

2007-04-04 09:35

reporter   ~0000586

I didn't find how to attach files here, so I sent it to you by mail.

derick

2007-04-04 12:12

administrator   ~0000587

Fixed in CVS - thanks for your report. The shortest reproducable list of commands is:

stdout -i 104 -c 1
breakpoint_set -i 106 -t exception -x "Warning"
run -i 107
source -i 120 -f "file:///home%5Cbhofmann%5Cpublic_html%5Ctest.php"

Issue History

Date Modified Username Field Change
2007-04-02 14:25 bhofmann New Issue
2007-04-03 21:33 derick Note Added: 0000585
2007-04-03 21:33 derick Status new => feedback
2007-04-04 09:35 bhofmann Note Added: 0000586
2007-04-04 12:12 derick Status feedback => closed
2007-04-04 12:12 derick Note Added: 0000587
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized