]> granicus.if.org Git - php/commitdiff
fix #38199 (fclose() unable to close STDOUT and STDERR)
authorAntony Dovgal <tony2001@php.net>
Mon, 28 Aug 2006 17:14:13 +0000 (17:14 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 28 Aug 2006 17:14:13 +0000 (17:14 +0000)
main/streams/plain_wrapper.c

index 7d62800b2cfb09083584c233012ec26ba1c3529e..c75859f4cd59c2d86e8aef94e3a6c0f1f827dc79 100644 (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;