diff options
author | Marcus Boerger <helly@php.net> | 2005-07-17 18:39:24 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-07-17 18:39:24 +0000 |
commit | 7316ee0399236480d3b9c5f78f1732545664bfe8 (patch) | |
tree | 3434341cc4027aa9a5b36c4349a62df972751173 /main | |
parent | dfeddbe539bd26c28cc6d2c652cddc53012e3856 (diff) | |
download | php-git-7316ee0399236480d3b9c5f78f1732545664bfe8.tar.gz |
- Fix problem with debug mode on selective machines
Diffstat (limited to 'main')
-rw-r--r-- | main/streams/plain_wrapper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 40af58b946..52c5e1d1e4 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -368,8 +368,8 @@ static int php_stdiop_close(php_stream *stream, int close_handle TSRMLS_DC) } } else if (data->fd != -1) { #ifdef PHP_DEBUG - 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 */ + if ((data->fd == 1 || data->fd == 2) && 0 == strcmp(sapi_module.name, "cli")) { + /* don't close stdout or stderr in CLI in DEBUG mode, as we want to see any leaks */ ret = 0; } else { ret = close(data->fd); |