]> granicus.if.org Git - php/commitdiff
Allow use of dl() when CLI is compiled with ZTS (bug #15717).
authorEdin Kadribasic <edink@php.net>
Tue, 26 Feb 2002 11:00:20 +0000 (11:00 +0000)
committerEdin Kadribasic <edink@php.net>
Tue, 26 Feb 2002 11:00:20 +0000 (11:00 +0000)
ext/standard/dl.c

index bb36cb5d9e02ab5f22050b1acae424c893b4721d..bbf3c6b8ade32e6d98bfc5a89eb6d5fb36fa6cdf 100644 (file)
@@ -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