mirror of
https://github.com/php/php-src.git
synced 2026-04-05 07:02:33 +02:00
- Need to set handle prior to calling zend_register_module_ex()
(Marcus, Kamesh Jayachandran <kameshj at fastmail dot fm>)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
Reference in New Issue
Block a user