|
|
|
@ -387,7 +387,11 @@ static zval *spl_array_read_dimension_ex(int check_inherited, zval *object, zval |
|
|
|
spl_array_object *intern = (spl_array_object*)zend_object_store_get_object(object TSRMLS_CC); |
|
|
|
if (intern->fptr_offset_get) { |
|
|
|
zval *rv; |
|
|
|
SEPARATE_ARG_IF_REF(offset); |
|
|
|
if (!offset) { |
|
|
|
ALLOC_INIT_ZVAL(offset); |
|
|
|
} else { |
|
|
|
SEPARATE_ARG_IF_REF(offset); |
|
|
|
} |
|
|
|
zend_call_method_with_1_params(&object, Z_OBJCE_P(object), &intern->fptr_offset_get, "offsetGet", &rv, offset); |
|
|
|
zval_ptr_dtor(&offset); |
|
|
|
if (rv) { |
|
|
|
|