diff --git a/ext/standard/dl.c b/ext/standard/dl.c index bb36cb5d9e0..bbf3c6b8ade 100644 --- a/ext/standard/dl.c +++ b/ext/standard/dl.c @@ -58,7 +58,7 @@ PHP_FUNCTION(dl) pval **file; #ifdef ZTS - if (strcmp(sapi_module.name, "cgi")!=0) { + if ((strcmp(sapi_module.name, "cgi")!=0) && (strcmp(sapi_module.name, "cli")!=0)) { php_error(E_ERROR, "dl() is not supported in multithreaded Web servers - use extension statements in your php.ini"); } #endif