Fixup fromcvs/togit conversion
[pkgsrcv2.git] / lang / php53 / patches / patch-main_main.c
1 $NetBSD: patch-main_main.c,v 1.1 2012/07/25 13:16:02 fhajny Exp $
2
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
5 +++ main/main.c
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};
9  #if HAVE_BROKEN_GETCWD 
10 -       int old_cwd_fd = -1;
11 +       volatile int old_cwd_fd = -1;
12  #else
13         char *old_cwd;
14         ALLOCA_FLAG(use_heap)