From: Edin Kadribasic Date: Wed, 29 Jan 2003 15:42:43 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.2RC1~377 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81586fed7d4519f39ec1c21c956d2145cfb92e5f;p=php MFH --- 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; } diff --git a/sapi/embed/php_embed.c b/sapi/embed/php_embed.c index 18e1169b4f..e1f644e011 100644 --- a/sapi/embed/php_embed.c +++ b/sapi/embed/php_embed.c @@ -100,7 +100,7 @@ static int php_embed_startup(sapi_module_struct *sapi_module) } sapi_module_struct php_embed_module = { - "embedded", /* name */ + "embed", /* name */ "PHP Embedded Library", /* pretty name */ php_embed_startup, /* startup */