From: Edin Kadribasic Date: Wed, 29 Jan 2003 15:39:10 +0000 (+0000) Subject: Enable embedded code using sapi/embed to use dl(). X-Git-Tag: RELEASE_0_5~1373 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca0b63e42045cd9979a1d870923869b189aeea26;p=php Enable embedded code using sapi/embed to use dl(). --- diff --git a/ext/standard/dl.c b/ext/standard/dl.c index f84aade1bb..c7f996907f 100644 --- a/ext/standard/dl.c +++ b/ext/standard/dl.c @@ -61,7 +61,9 @@ PHP_FUNCTION(dl) pval **file; #ifdef ZTS - if ((strncmp(sapi_module.name, "cgi", 3)!=0) && (strcmp(sapi_module.name, "cli")!=0)) { + if ((strncmp(sapi_module.name, "cgi", 3)!=0) && + (strcmp(sapi_module.name, "cli")!=0) && + (strncmp(sapi_module.name, "embed", 5)!=0)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Not supported in multithreaded Web servers - use extension statements in your php.ini"); RETURN_FALSE; }