Skip to content

Commit 81c33ee

Browse files
committed
Merge branch 'PHP-8.2'
2 parents 2cab487 + 0bfdd56 commit 81c33ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/dl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ PHPAPI int php_load_extension(const char *filename, int type, int start_now)
206206
}
207207
module_entry = get_module();
208208
if (zend_hash_str_exists(&module_registry, module_entry->name, strlen(module_entry->name))) {
209-
DL_UNLOAD(handle);
210209
zend_error(E_CORE_WARNING, "Module \"%s\" is already loaded", module_entry->name);
210+
DL_UNLOAD(handle);
211211
return FAILURE;
212212
}
213213
if (module_entry->zend_api != ZEND_MODULE_API_NO) {

0 commit comments

Comments
 (0)