chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / php / ext-standard-php_fopen_wrapper.c.patch
1 See https://groups.google.com/a/chromium.org/forum/#!topic/chromium-reviews/AXhZapYuHi8
2
3 diff -u -r ../php-5.6.16/ext/standard/php_fopen_wrapper.c ./ext/standard/php_fopen_wrapper.c
4 --- ../php-5.6.16/ext/standard/php_fopen_wrapper.c      2015-11-25 15:28:38.000000000 -0500
5 +++ ./ext/standard/php_fopen_wrapper.c  2016-01-04 06:42:57.421589363 -0500
6 @@ -312,7 +312,7 @@
7                 }
8  
9  #if HAVE_UNISTD_H
10 -               dtablesize = getdtablesize();
11 +               dtablesize = sysconf(_SC_OPEN_MAX);
12  #else
13                 dtablesize = INT_MAX;
14  #endif