cvs: php4 /ext/standard dl.c
| From: | Edin Kadribasic | Date: | Wed, 29 Jan 2003 15:39:10 +0000 |
| Subject: | cvs: php4 /ext/standard dl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18268@lists.php.net to get a copy of this message | ||
edink Wed Jan 29 10:39:10 2003 EDT
Modified files:
/php4/ext/standard dl.c
Log:
Enable embedded code using sapi/embed to use dl().
Index: php4/ext/standard/dl.c
diff -u php4/ext/standard/dl.c:1.81 php4/ext/standard/dl.c:1.82
--- php4/ext/standard/dl.c:1.81 Tue Dec 31 11:07:36 2002
+++ php4/ext/standard/dl.c Wed Jan 29 10:39:10 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dl.c,v 1.81 2002/12/31 16:07:36 sebastian Exp $ */
+/* $Id: dl.c,v 1.82 2003/01/29 15:39:10 edink Exp $ */
#include "php.h"
#include "dl.h"
@@ -61,7 +61,9 @@
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;
}