summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-05-21 17:17:55 +0000
committerWez Furlong <wez@php.net>2004-05-21 17:17:55 +0000
commit9462eb6db5d438ba41e8304cb9f8c848b58b4d57 (patch)
tree5de7dd0946d01b6a05e0897d49da40e6567162fb
parentfbccd1438c2fa0bd2c0a2e46c4e421a2436b9254 (diff)
downloadphp-git-9462eb6db5d438ba41e8304cb9f8c848b58b4d57.tar.gz
Ok, so we do need to rinit here after all.
-rw-r--r--ext/standard/dl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/standard/dl.c b/ext/standard/dl.c
index 0b13085ed1..322aefe3cd 100644
--- a/ext/standard/dl.c
+++ b/ext/standard/dl.c
@@ -241,6 +241,14 @@ void php_dl(pval *file, int type, pval *return_value TSRMLS_DC)
DL_UNLOAD(handle);
RETURN_FALSE;
}
+
+ if ((type == MODULE_TEMPORARY) && module_entry->request_startup_func) {
+ if (module_entry->request_startup_func(type, module_entry->module_number TSRMLS_CC)) {
+ php_error_docref(NULL TSRMLS_CC, error_type, "Unable to initialize module '%s'", module_entry->name);
+ DL_UNLOAD(handle);
+ RETURN_FALSE;
+ }
+ }
RETURN_TRUE;
}