From: Rasmus Lerdorf Date: Fri, 5 Apr 2013 02:24:12 +0000 (-0700) Subject: Fixed bugs #47675 and #64577 (fd leak on Solaris) X-Git-Tag: php-5.6.0alpha1~448^2~57^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb54fada51adfa9d19ee21740efe09bf3b2befe1;p=php Fixed bugs #47675 and #64577 (fd leak on Solaris) --- diff --git a/main/main.c b/main/main.c index a792fb6ec0..40304c7f9c 100644 --- a/main/main.c +++ b/main/main.c @@ -2397,8 +2397,8 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC) { zend_file_handle *prepend_file_p, *append_file_p; zend_file_handle prepend_file = {0}, append_file = {0}; -#if HAVE_BROKEN_GETCWD - int old_cwd_fd = -1; +#if HAVE_BROKEN_GETCWD + volatile int old_cwd_fd = -1; #else char *old_cwd; ALLOCA_FLAG(use_heap)