--- php-8.0.10.old/TSRM/TSRM.c +++ php-8.0.10/TSRM/TSRM.c @@ -118,6 +118,10 @@ /* Startup TSRM (call once for the entire process) */ TSRM_API int tsrm_startup(int expected_threads, int expected_resources, int debug_level, const char *debug_filename) {/*{{{*/ + { // Workaround for a bizarre problem + FILE *kludge = popen ("/bin/true", "r"); + if (kludge != NULL) pclose (kludge); + } #ifdef TSRM_WIN32 tls_key = TlsAlloc(); #else --- php-8.0.10.old/main/SAPI.c +++ php-8.0.10/main/SAPI.c @@ -17,6 +17,7 @@ */ #include +#include #include #include "php.h" @@ -78,6 +79,11 @@ _configthreadlocale(_ENABLE_PER_THREAD_LOCALE); # endif #else + { // Workaround for a bizarre problem + FILE *kludge = popen ("/bin/true", "r"); + if (kludge != NULL) pclose (kludge); + } + sapi_globals_ctor(&sapi_globals); #endif ===== end of patch =====