mirror of
https://github.com/php/php-src.git
synced 2026-04-28 02:33:17 +02:00
Don't use zend_ascii_hash_find() here -- module names are binary strings.
This commit is contained in:
+1
-1
@@ -1764,7 +1764,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
|
||||
if (sapi_module.additional_functions) {
|
||||
zend_module_entry *module;
|
||||
|
||||
if (zend_ascii_hash_find(&module_registry, "standard", sizeof("standard"), (void**)&module)==SUCCESS) {
|
||||
if (zend_hash_find(&module_registry, "standard", sizeof("standard"), (void**)&module)==SUCCESS) {
|
||||
EG(current_module) = module;
|
||||
zend_register_functions(NULL, sapi_module.additional_functions, NULL, MODULE_PERSISTENT TSRMLS_CC);
|
||||
EG(current_module) = NULL;
|
||||
|
||||
Reference in New Issue
Block a user