From: Edin Kadribasic Date: Tue, 26 Feb 2002 11:00:20 +0000 (+0000) Subject: Allow use of dl() when CLI is compiled with ZTS (bug #15717). X-Git-Tag: php-4.2.0RC1~276 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0bbc3c3a4cffbc3da4b4d28911ba044997c4929e;p=php Allow use of dl() when CLI is compiled with ZTS (bug #15717). --- diff --git a/ext/standard/dl.c b/ext/standard/dl.c index bb36cb5d9e..bbf3c6b8ad 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