From 146255f35c7bea85985776cdd748d423fc47c762 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 25 May 2004 13:00:25 +0000 Subject: [PATCH] check if it matches... not if it doesn't... --- main/streams/plain_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.40.0