diff options
author | Andrei Zmievski <andrei@php.net> | 2000-09-05 14:58:14 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2000-09-05 14:58:14 +0000 |
commit | 0fd8685c6436a64d778fa1987e7fb8c36ce44295 (patch) | |
tree | 87b2c103905d07167c9595cf60f59c6ae5c7d31b /Zend/zend_builtin_functions.c | |
parent | be83e732af79b744254e2785f2ca10a8709dccd5 (diff) | |
download | php-git-0fd8685c6436a64d778fa1987e7fb8c36ce44295.tar.gz |
Fix memory overrun.
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r-- | Zend/zend_builtin_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index a7d9fa7372..f4e25a6f2a 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -584,7 +584,7 @@ ZEND_FUNCTION(get_class_methods) while ((key_type = zend_hash_get_current_key(&ce->function_table, &string_key, &num_key)) != HASH_KEY_NON_EXISTANT) { if (key_type == HASH_KEY_IS_STRING) { MAKE_STD_ZVAL(method_name); - ZVAL_STRING(method_name, string_key, 0); + ZVAL_STRING(method_name, string_key, 1); zend_hash_next_index_insert(return_value->value.ht, &method_name, sizeof(zval *), NULL); } zend_hash_move_forward(&ce->function_table); |