diff options
author | Andi Gutmans <andi@php.net> | 2001-12-01 08:46:02 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2001-12-01 08:46:02 +0000 |
commit | 94cfe03da5dca388ff51cf90d99e40804923860e (patch) | |
tree | fe0eb556e886b9f69f51ba2d6be8a48ddfa2406b /Zend | |
parent | bb9a36cad1b738d42ae935ec2a90b04ef0afa0f2 (diff) | |
download | php-git-94cfe03da5dca388ff51cf90d99e40804923860e.tar.gz |
- Revert one of the changes because it might be before the memory
- manager has started.
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend_API.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index a9a10ccb8c..e013d16a57 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1206,10 +1206,7 @@ ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *cla ZEND_API zend_class_entry *zend_register_internal_class(zend_class_entry *class_entry TSRMLS_DC) { zend_class_entry *register_class; - char *lowercase_name; - - lowercase_name = do_alloca(class_entry->name_length+1); - memcpy(lowercase_name, class_entry->name, class_entry->name_length+1); + char *lowercase_name = zend_strndup(class_entry->name, class_entry->name_length); zend_str_tolower(lowercase_name, class_entry->name_length); @@ -1229,7 +1226,7 @@ ZEND_API zend_class_entry *zend_register_internal_class(zend_class_entry *class_ } zend_hash_update(CG(class_table), lowercase_name, class_entry->name_length+1, class_entry, sizeof(zend_class_entry), (void **) ®ister_class); - free_alloca(lowercase_name); + free(lowercase_name); return register_class; } |