From: Xinchen Hui Date: Sat, 15 Mar 2014 05:12:55 +0000 (+0800) Subject: Fixed fixed_array fetching X-Git-Tag: POST_PHPNG_MERGE~412^2~323 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2432872c493fa05f297c6a15f8a37246e8c2de4;p=php Fixed fixed_array fetching --- diff --git a/ext/spl/spl_fixedarray.c b/ext/spl/spl_fixedarray.c index 2dec775edd..9ab8035663 100644 --- a/ext/spl/spl_fixedarray.c +++ b/ext/spl/spl_fixedarray.c @@ -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;