1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 01:23:53 +02:00

- Fix built-in classes with more than 5 methods

This commit is contained in:
Zeev Suraski
2000-02-02 22:23:37 +00:00
parent 1a4e39838f
commit 8b9e07dace

View File

@@ -900,12 +900,13 @@ ZEND_API zend_class_entry *register_internal_class(zend_class_entry *class_entry
zend_hash_init(&class_entry->default_properties, 0, NULL, ZVAL_PTR_DTOR, 1);
zend_hash_init(&class_entry->function_table, 0, NULL, ZEND_FUNCTION_DTOR, 1);
zend_hash_update(CG(class_table), lowercase_name, class_entry->name_length+1, class_entry, sizeof(zend_class_entry), (void **) &register_class);
free(lowercase_name);
if (class_entry->builtin_functions) {
zend_register_functions(class_entry->builtin_functions, &class_entry->function_table);
}
zend_hash_update(CG(class_table), lowercase_name, class_entry->name_length+1, class_entry, sizeof(zend_class_entry), (void **) &register_class);
free(lowercase_name);
return register_class;
}