From 0bbc3c3a4cffbc3da4b4d28911ba044997c4929e Mon Sep 17 00:00:00 2001 From: Edin Kadribasic Date: Tue, 26 Feb 2002 11:00:20 +0000 Subject: [PATCH] Allow use of dl() when CLI is compiled with ZTS (bug #15717). --- ext/standard/dl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.1