diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2014-10-26 22:21:18 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2014-10-27 00:00:18 +0100 |
commit | 190f4f9f18643a306fab7a71b625bf01168b0093 (patch) | |
tree | 1333543c053a968817f6576f4c18434409034594 /sapi/phpdbg/phpdbg_io.c | |
parent | 3ab7734b88f1842b818526e2e3f34022c3270057 (diff) | |
download | php-git-190f4f9f18643a306fab7a71b625bf01168b0093.tar.gz |
Fix last commit, and do not output unnecessary information
Diffstat (limited to 'sapi/phpdbg/phpdbg_io.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_io.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_io.c b/sapi/phpdbg/phpdbg_io.c index a2a5c5969f..6908a687d7 100644 --- a/sapi/phpdbg/phpdbg_io.c +++ b/sapi/phpdbg/phpdbg_io.c @@ -187,6 +187,10 @@ PHPDBG_API int phpdbg_mixed_read(int sock, char *ptr, int len, int tmo TSRMLS_DC PHPDBG_API int phpdbg_mixed_write(int sock, const char *ptr, int len TSRMLS_DC) { + if (PHPDBG_G(flags) & PHPDBG_DISCARD_OUTPUT) { + return 0; + } + if (PHPDBG_G(flags) & PHPDBG_IS_REMOTE) { return phpdbg_send_bytes(sock, ptr, len); } |