com php-src: Fixed fixed_array fetching: ext/spl/spl_ fixedarray.c
| From: | Dmitry Stogov | Date: | Sat, 15 Mar 2014 05:12:55 +0000 |
| Subject: | com php-src: Fixed fixed_array fetching: ext/spl/spl_ fixedarray.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77632@lists.php.net to get a copy of this message | ||
Commit: b2432872c493fa05f297c6a15f8a37246e8c2de4
Author: Xinchen Hui <laruence@gmail.com> Sat, 15 Mar 2014 13:12:55 +0800
Parents: 232f3e915cf7499663d6f404e8f3dbf4985523fb
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b2432872c493fa05f297c6a15f8a37246e8c2de4
Log:
Fixed fixed_array fetching
Changed paths:
M ext/spl/spl_fixedarray.c
Diff:
diff --git a/ext/spl/spl_fixedarray.c b/ext/spl/spl_fixedarray.c
index 2dec775..9ab8035 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;