Output stderr on real stderr in phpdbg

This commit is contained in:
Bob Weinand 2015-11-23 17:41:01 +01:00
parent 7e9f416218
commit c1189eccae
2 changed files with 4 additions and 1 deletions

3
NEWS
View File

@ -25,6 +25,9 @@ PHP NEWS
by gcov. (Senthil) by gcov. (Senthil)
. Fixed memory leak with LOBs. (Senthil) . Fixed memory leak with LOBs. (Senthil)
- Phpdbg:
. Fixed stderr being written to stdout. (Bob)
- SOAP: - SOAP:
. Fixed bug #70900 (SoapClient systematic out of memory error). (Dmitry) . Fixed bug #70900 (SoapClient systematic out of memory error). (Dmitry)
. Fixed bug #70940 (Segfault in soap / type_to_string). (Remi) . Fixed bug #70940 (Segfault in soap / type_to_string). (Remi)

View File

@ -916,7 +916,7 @@ static size_t phpdbg_stdiop_write(php_stream *stream, const char *buf, size_t co
return count; return count;
} }
if (stat[2].st_dev == stat[1].st_dev && stat[2].st_ino == stat[1].st_ino) { if (stat[2].st_dev == stat[1].st_dev && stat[2].st_ino == stat[1].st_ino) {
phpdbg_script(P_STDERR, "%.*s", (int) count, buf); phpdbg_script_ex(PHPDBG_G(io)[PHPDBG_STDERR].fd, P_STDERR, "%.*s", (int) count, buf);
return count; return count;
} }
break; break;