Skip to content

Commit cb54fad

Browse files
committed
Fixed bugs #47675 and #64577 (fd leak on Solaris)
1 parent e9cc55a commit cb54fad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2397,8 +2397,8 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC)
23972397
{
23982398
zend_file_handle *prepend_file_p, *append_file_p;
23992399
zend_file_handle prepend_file = {0}, append_file = {0};
2400-
#if HAVE_BROKEN_GETCWD
2401-
int old_cwd_fd = -1;
2400+
#if HAVE_BROKEN_GETCWD
2401+
volatile int old_cwd_fd = -1;
24022402
#else
24032403
char *old_cwd;
24042404
ALLOCA_FLAG(use_heap)

0 commit comments

Comments
 (0)