From: Marcus Boerger Date: Tue, 20 Jul 2004 19:23:55 +0000 (+0000) Subject: - Need to set handle prior to calling zend_register_module_ex() X-Git-Tag: PRE_ZEND_VM_DISPATCH_PATCH~425 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=514dfbfbed61fd834b5f96b480315d9cf6c2b511;p=php - Need to set handle prior to calling zend_register_module_ex() (Marcus, Kamesh Jayachandran ) --- diff --git a/ext/standard/dl.c b/ext/standard/dl.c index 47b35080c1..ffccc90467 100644 --- a/ext/standard/dl.c +++ b/ext/standard/dl.c @@ -236,7 +236,8 @@ void php_dl(pval *file, int type, pval *return_value TSRMLS_DC) } module_entry->type = type; module_entry->module_number = zend_next_free_module(); - + module_entry->handle = handle; + if (zend_register_module_ex(module_entry TSRMLS_CC) == FAILURE) { DL_UNLOAD(handle); RETURN_FALSE; @@ -250,8 +251,6 @@ void php_dl(pval *file, int type, pval *return_value TSRMLS_DC) } } - module_entry->handle = handle; - RETURN_TRUE; } /* }}} */