From: Frank M. Kromann Date: Tue, 22 Oct 2002 07:00:51 +0000 (+0000) Subject: Fixing check to enable dl() for both cgi and cgi-fcgi X-Git-Tag: php-4.3.0pre2~206 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=938a78a85bd04fbcc676604172804486155bc50c;p=php Fixing check to enable dl() for both cgi and cgi-fcgi --- 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; }