Skip to content

Commit c1189ec

Browse files
committed
Output stderr on real stderr in phpdbg
1 parent 7e9f416 commit c1189ec

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ PHP NEWS
2525
by gcov. (Senthil)
2626
. Fixed memory leak with LOBs. (Senthil)
2727

28+
- Phpdbg:
29+
. Fixed stderr being written to stdout. (Bob)
30+
2831
- SOAP:
2932
. Fixed bug #70900 (SoapClient systematic out of memory error). (Dmitry)
3033
. Fixed bug #70940 (Segfault in soap / type_to_string). (Remi)

sapi/phpdbg/phpdbg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ static size_t phpdbg_stdiop_write(php_stream *stream, const char *buf, size_t co
916916
return count;
917917
}
918918
if (stat[2].st_dev == stat[1].st_dev && stat[2].st_ino == stat[1].st_ino) {
919-
phpdbg_script(P_STDERR, "%.*s", (int) count, buf);
919+
phpdbg_script_ex(PHPDBG_G(io)[PHPDBG_STDERR].fd, P_STDERR, "%.*s", (int) count, buf);
920920
return count;
921921
}
922922
break;

0 commit comments

Comments
 (0)