]> granicus.if.org Git - php/commitdiff
Fixed fixed_array fetching
authorXinchen Hui <laruence@gmail.com>
Sat, 15 Mar 2014 05:12:55 +0000 (13:12 +0800)
committerXinchen Hui <laruence@gmail.com>
Sat, 15 Mar 2014 05:12:55 +0000 (13:12 +0800)
ext/spl/spl_fixedarray.c

index 2dec775edd2a86d19311687f6d184b3aa7919dcf..9ab803566341649edaf6f80bd2aa7701e4408b45 100644 (file)
@@ -146,7 +146,7 @@ static void spl_fixedarray_copy(spl_fixedarray *to, spl_fixedarray *from TSRMLS_
 
 static HashTable* spl_fixedarray_object_get_gc(zval *obj, zval **table, int *n TSRMLS_DC) /* {{{{ */
 {
-       spl_fixedarray_object *intern  = (spl_fixedarray_object*)Z_OBJ_P(obj);
+       spl_fixedarray_object *intern  = Z_SPLFIXEDARRAY_P(obj);
        HashTable *ht = zend_std_get_properties(obj TSRMLS_CC);
 
        if (intern->array) {
@@ -163,7 +163,7 @@ static HashTable* spl_fixedarray_object_get_gc(zval *obj, zval **table, int *n T
 
 static HashTable* spl_fixedarray_object_get_properties(zval *obj TSRMLS_DC) /* {{{{ */
 {
-       spl_fixedarray_object *intern  = (spl_fixedarray_object*)Z_OBJ_P(obj);
+       spl_fixedarray_object *intern  = Z_SPLFIXEDARRAY_P(obj);
        HashTable *ht = zend_std_get_properties(obj TSRMLS_CC);
        int  i = 0;