Fixed bugs #47675 and #64577 (fd leak on Solaris)

This commit is contained in:
Rasmus Lerdorf 2013-04-04 19:24:12 -07:00
parent e9cc55a803
commit cb54fada51

View File

@ -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)