From 938a78a85bd04fbcc676604172804486155bc50c Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Tue, 22 Oct 2002 07:00:51 +0000 Subject: [PATCH] Fixing check to enable dl() for both cgi and cgi-fcgi --- 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 26640a4891..cdde02ab6f 100644 --- a/ext/standard/dl.c +++ b/ext/standard/dl.c @@ -65,7 +65,7 @@ PHP_FUNCTION(dl) pval **file; #ifdef ZTS - if ((strcmp(sapi_module.name, "cgi")!=0) && (strcmp(sapi_module.name, "cli")!=0)) { + if ((strncmp(sapi_module.name, "cgi", 3)!=0) && (strcmp(sapi_module.name, "cli")!=0)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Not supported in multithreaded Web servers - use extension statements in your php.ini"); RETURN_FALSE; } -- 2.50.1