From: Wez Furlong Date: Tue, 25 May 2004 13:00:25 +0000 (+0000) Subject: check if it matches... not if it doesn't... X-Git-Tag: php-5.0.0RC3RC1~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=146255f35c7bea85985776cdd748d423fc47c762;p=php check if it matches... not if it doesn't... --- diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 9a4027ec9a..b161f9fb1f 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -429,7 +429,7 @@ static int php_stdiop_close(php_stream *stream, int close_handle TSRMLS_DC) } } else if (data->fd != -1) { #ifdef DEBUG - if (data->fd == 2 && strcmp(sapi_module.name, "cli")) { + if (data->fd == 2 && 0 == strcmp(sapi_module.name, "cli")) { /* don't close stderr in CLI in DEBUG mode, as we want to see any leaks */ ret = 0; } else {