--- php-8.0.6/ext/standard/php_fopen_wrapper.c 2021-05-04 19:26:18.000000000 +0200 +++ php-8.0.6-patched/ext/standard/php_fopen_wrapper.c 2021-06-04 01:04:07.104126109 +0200 @@ -317,7 +317,7 @@ return NULL; } -#if HAVE_UNISTD_H +#if !HAVE_UNISTD_H dtablesize = getdtablesize(); #else dtablesize = INT_MAX;