]> granicus.if.org Git - php/commitdiff
fix arrays with NULL keys in Unicode mode
authorAntony Dovgal <tony2001@php.net>
Fri, 4 May 2007 11:48:08 +0000 (11:48 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 4 May 2007 11:48:08 +0000 (11:48 +0000)
Zend/zend_execute.c

index 934a7898da93a37a50b443efa785b477e295a742..ef88fca2b2e11f6c36f6ab85ff56ce80fea62073 100644 (file)
@@ -926,8 +926,8 @@ static inline zval **zend_fetch_dimension_address_inner(HashTable *ht, zval *dim
 
        switch (ztype) {
                case IS_NULL:
-                       ztype = IS_STRING;
-                       offset_key.s = "";
+                       ztype = ZEND_STR_TYPE;
+                       offset_key = EMPTY_ZSTR;
                        offset_key_length = 0;
                        goto fetch_string_dim;