tony2001 Mon Aug 28 17:14:13 2006 UTC
Modified files:
/php-src/main/streams plain_wrapper.c
Log:
fix #38199 (fclose() unable to close STDOUT and STDERR)
http://cvs.php.net/viewvc.cgi/php-src/main/streams/plain_wrapper.c?r1=1.68&r2=1.69&diff_format=u
Index: php-src/main/streams/plain_wrapper.c
diff -u php-src/main/streams/plain_wrapper.c:1.68
php-src/main/streams/plain_wrapper.c:1.69
--- php-src/main/streams/plain_wrapper.c:1.68 Tue Aug 22 06:15:45 2006
+++ php-src/main/streams/plain_wrapper.c Mon Aug 28 17:14:13 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: plain_wrapper.c,v 1.68 2006/08/22 06:15:45 dmitry Exp $ */
+/* $Id: plain_wrapper.c,v 1.69 2006/08/28 17:14:13 tony2001 Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -373,7 +373,7 @@
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;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php