]> granicus.if.org Git - php/commitdiff
- Wasn't adding the lower case version of the class name to the hash
authorAndi Gutmans <andi@php.net>
Fri, 28 Dec 2001 13:18:19 +0000 (13:18 +0000)
committerAndi Gutmans <andi@php.net>
Fri, 28 Dec 2001 13:18:19 +0000 (13:18 +0000)
Zend/zend_compile.c

index c2b261c3b4efacbcaa34b1fceaea79d5de7f7e3d..676cac10ec2da91b8859386002b40b40683d4d99 100644 (file)
@@ -1376,7 +1376,7 @@ static void create_class(HashTable *class_table, char *name, int name_length, ze
 
        new_class_entry.parent = NULL;
 
-       if (zend_hash_update(class_table, name, name_length+1, &new_class_entry, sizeof(zend_class_entry), ce) == FAILURE) {
+       if (zend_hash_update(class_table, new_class_entry.name, name_length+1, &new_class_entry, sizeof(zend_class_entry), ce) == FAILURE) {
                zend_error(E_ERROR, "Can't create class. Fatal error, please report!");
        }
 }