From 706bd350ec5ca2f30b23102089b2c23aa25f4ee5 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 4 Jan 2016 06:46:16 -0500 Subject: [PATCH] php: Fix 64-bit build --- .../php/ext-standard-php_fopen_wrapper.c.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 packages/php/ext-standard-php_fopen_wrapper.c.patch diff --git a/packages/php/ext-standard-php_fopen_wrapper.c.patch b/packages/php/ext-standard-php_fopen_wrapper.c.patch new file mode 100644 index 000000000..0f7b38158 --- /dev/null +++ b/packages/php/ext-standard-php_fopen_wrapper.c.patch @@ -0,0 +1,14 @@ +See https://groups.google.com/a/chromium.org/forum/#!topic/chromium-reviews/AXhZapYuHi8 + +diff -u -r ../php-5.6.16/ext/standard/php_fopen_wrapper.c ./ext/standard/php_fopen_wrapper.c +--- ../php-5.6.16/ext/standard/php_fopen_wrapper.c 2015-11-25 15:28:38.000000000 -0500 ++++ ./ext/standard/php_fopen_wrapper.c 2016-01-04 06:42:57.421589363 -0500 +@@ -312,7 +312,7 @@ + } + + #if HAVE_UNISTD_H +- dtablesize = getdtablesize(); ++ dtablesize = sysconf(_SC_OPEN_MAX); + #else + dtablesize = INT_MAX; + #endif