Skip to content

Commit b70eedd

Browse files
author
Andi Gutmans
committed
- Fix crash bug (fix by Jani).
1 parent d3eff41 commit b70eedd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Zend/zend_builtin_functions.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,12 +1087,16 @@ ZEND_FUNCTION(get_extension_funcs)
10871087

10881088
convert_to_string_ex(extension_name);
10891089
if (zend_hash_find(&module_registry, Z_STRVAL_PP(extension_name),
1090-
Z_STRLEN_PP(extension_name)+1, (void**)&module) == FAILURE) {
1090+
Z_STRLEN_PP(extension_name)+1, (void**)&module) == FAILURE) {
10911091
return;
10921092
}
10931093

10941094
array_init(return_value);
10951095
func = module->functions;
1096+
if (!func) {
1097+
return;
1098+
}
1099+
10961100
while (func->fname) {
10971101
add_next_index_string(return_value, func->fname, 1);
10981102
func++;

0 commit comments

Comments
 (0)