1 $NetBSD: patch-main_main.c,v 1.1 2012/07/25 13:16:02 fhajny Exp $
3 Fix fd leak on SunOS (https://bugs.php.net/bug.php?id=47675).
4 --- main/main.c.orig 2012-06-13 04:54:23.000000000 +0000
6 @@ -2388,7 +2388,7 @@ PHPAPI int php_execute_script(zend_file_
7 zend_file_handle *prepend_file_p, *append_file_p;
8 zend_file_handle prepend_file = {0}, append_file = {0};
10 - int old_cwd_fd = -1;
11 + volatile int old_cwd_fd = -1;