diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2009-03-03 23:42:51 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2009-03-03 23:42:51 +0000 |
| commit | e66b91c063086c28f930563ff8c7e093a8047e56 (patch) | |
| tree | 3542ca84fd4f54860008f4d437d9d08f2f85399f /Zend/zend_builtin_functions.c | |
| parent | 627caefc4d0638b931c7156f1e888555d613070d (diff) | |
| download | php-git-e66b91c063086c28f930563ff8c7e093a8047e56.tar.gz | |
Fixed bug #47549 (get_defined_constants() return array with broken
array categories)
Diffstat (limited to 'Zend/zend_builtin_functions.c')
| -rw-r--r-- | Zend/zend_builtin_functions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 72ec836cb3..f7d0dc9960 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -1814,7 +1814,8 @@ ZEND_FUNCTION(get_defined_constants) module_names[0] = "internal"; zend_hash_internal_pointer_reset_ex(&module_registry, &pos); while (zend_hash_get_current_data_ex(&module_registry, (void *) &module, &pos) != FAILURE) { - module_names[i++] = (char*)module->name; + module_names[module->module_number] = (char *)module->name; + i++; zend_hash_move_forward_ex(&module_registry, &pos); } module_names[i] = "user"; |
