summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xext/spl/spl_array.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index c40c1102a5..2449f59671 100755
--- a/ext/spl/spl_array.c
+++ b/ext/spl/spl_array.c
@@ -607,7 +607,8 @@ static void spl_array_write_property(zval *object, zval *member, zval *value TSR
if ((intern->ar_flags & SPL_ARRAY_ARRAY_AS_PROPS) != 0
&& !std_object_handlers.has_property(object, member, 2 TSRMLS_CC)) {
- return spl_array_write_dimension(object, member, value TSRMLS_CC);
+ spl_array_write_dimension(object, member, value TSRMLS_CC);
+ return;
}
std_object_handlers.write_property(object, member, value TSRMLS_CC);
} /* }}} */