1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 11:55:07 +00:00
serenity/Ports/php/patches/fopen-getdtablesize.patch
2022-01-08 00:45:49 +01:00

14 lines
417 B
Diff

--- php-8.1.1/ext/standard/php_fopen_wrapper.c 2021-12-15 03:00:45.000000000 +0100
+++ php-8.1.1-patched/ext/standard/php_fopen_wrapper.c 2022-01-07 23:45:58.357132436 +0100
@@ -317,11 +317,7 @@
return NULL;
}
-#if HAVE_UNISTD_H
- dtablesize = getdtablesize();
-#else
dtablesize = INT_MAX;
-#endif
if (fildes_ori < 0 || fildes_ori >= dtablesize) {
php_stream_wrapper_log_error(wrapper, options,