1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00

fix #38199 (fclose() unable to close STDOUT and STDERR)

This commit is contained in:
Antony Dovgal
2006-08-28 17:14:13 +00:00
parent 07379c22ef
commit 144cca7be3
+1 -1
View File
@@ -373,7 +373,7 @@ static int php_stdiop_close(php_stream *stream, int close_handle TSRMLS_DC)
data->file = NULL;
}
} else if (data->fd != -1) {
#ifdef PHP_DEBUG
#if PHP_DEBUG
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;