From 9462eb6db5d438ba41e8304cb9f8c848b58b4d57 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 21 May 2004 17:17:55 +0000 Subject: [PATCH] Ok, so we do need to rinit here after all. --- ext/standard/dl.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- 2.40.0