summaryrefslogtreecommitdiff
path: root/main/streams/plain_wrapper.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-05-25 13:00:25 +0000
committerWez Furlong <wez@php.net>2004-05-25 13:00:25 +0000
commit146255f35c7bea85985776cdd748d423fc47c762 (patch)
tree88b158a65796efab5463d76f86b7e7653deaf0ad /main/streams/plain_wrapper.c
parentc6dff79138f5e399ee4de1d9f22d02f41b9d5c0c (diff)
downloadphp-git-146255f35c7bea85985776cdd748d423fc47c762.tar.gz
check if it matches... not if it doesn't...
Diffstat (limited to 'main/streams/plain_wrapper.c')
-rw-r--r--main/streams/plain_wrapper.c2
1 files changed, 1 insertions, 1 deletions
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 {