com php-src: Output stderr on real stderr in phpdbg: NEWS sapi/phpdbg/phpdbg.c
| From: | Bob Weinand | Date: | Mon, 23 Nov 2015 16:46:07 +0000 |
| Subject: | com php-src: Output stderr on real stderr in phpdbg: NEWS sapi/phpdbg/phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89975@lists.php.net to get a copy of this message | ||
Commit: c1189eccae3c555ac5a8610110bb3edb80998d2c
Author: Bob Weinand <bobwei9@hotmail.com> Mon, 23 Nov 2015 17:41:01 +0100
Parents: 7e9f416218165f7329358e0432c6373d664c5ed7
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c1189eccae3c555ac5a8610110bb3edb80998d2c
Log:
Output stderr on real stderr in phpdbg
Changed paths:
M NEWS
M sapi/phpdbg/phpdbg.c
Diff:
diff --git a/NEWS b/NEWS
index dc29b7d..708c3fb 100644
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,9 @@ PHP NEWS
by gcov. (Senthil)
. Fixed memory leak with LOBs. (Senthil)
+- Phpdbg:
+ . Fixed stderr being written to stdout. (Bob)
+
- SOAP:
. Fixed bug #70900 (SoapClient systematic out of memory error). (Dmitry)
. Fixed bug #70940 (Segfault in soap / type_to_string). (Remi)
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index 1fda4b7..d3ed746 100644
--- a/sapi/phpdbg/phpdbg.c
+++ b/sapi/phpdbg/phpdbg.c
@@ -916,7 +916,7 @@ static size_t phpdbg_stdiop_write(php_stream *stream, const char *buf, size_t co
return count;
}
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;
}
break;