cvs: ZendEngine2 / zend_builtin_functions.c
| From: | Marcus Boerger | Date: | Thu, 18 Sep 2003 16:20:42 +0000 |
| Subject: | cvs: ZendEngine2 / zend_builtin_functions.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1850@lists.php.net to get a copy of this message | ||
helly Thu Sep 18 12:20:42 2003 EDT
Modified files:
/ZendEngine2 zend_builtin_functions.c
Log:
Go with studlyCaps
Index: ZendEngine2/zend_builtin_functions.c
diff -u ZendEngine2/zend_builtin_functions.c:1.210 ZendEngine2/zend_builtin_functions.c:1.211
--- ZendEngine2/zend_builtin_functions.c:1.210 Sun Aug 31 08:38:50 2003
+++ ZendEngine2/zend_builtin_functions.c Thu Sep 18 12:20:42 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_builtin_functions.c,v 1.210 2003/08/31 12:38:50 zeev Exp $ */
+/* $Id: zend_builtin_functions.c,v 1.211 2003/09/18 16:20:42 helly Exp $ */
#include "zend.h"
#include "zend_API.h"
@@ -722,6 +722,8 @@
char *string_key;
ulong num_key;
int key_type;
+ HashPosition pos;
+ zend_function *mptr;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &class)==FAILURE) {
ZEND_WRONG_PARAM_COUNT();
@@ -747,14 +749,13 @@
}
array_init(return_value);
- zend_hash_internal_pointer_reset(&ce->function_table);
- while ((key_type = zend_hash_get_current_key(&ce->function_table, &string_key,
&num_key, 1)) != HASH_KEY_NON_EXISTANT) {
- if (key_type == HASH_KEY_IS_STRING) {
- MAKE_STD_ZVAL(method_name);
- ZVAL_STRING(method_name, string_key, 0);
- zend_hash_next_index_insert(return_value->value.ht, &method_name, sizeof(zval *), NULL);
- }
- zend_hash_move_forward(&ce->function_table);
+ zend_hash_internal_pointer_reset_ex(&ce->function_table, &pos);
+
+ while (zend_hash_get_current_data_ex(&ce->function_table, (void **) &mptr, &pos) ==
SUCCESS) {
+ MAKE_STD_ZVAL(method_name);
+ ZVAL_STRING(method_name, mptr->common.function_name, 1);
+ zend_hash_next_index_insert(return_value->value.ht, &method_name, sizeof(zval *), NULL);
+ zend_hash_move_forward_ex(&ce->function_table, &pos);
}
}
/* }}} */