diff options
| -rw-r--r-- | ext/standard/dl.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; } /* }}} */ |
