summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2012-03-28 13:04:41 +0100
committerGustavo André dos Santos Lopes <cataphract@php.net>2012-03-28 13:04:41 +0100
commitf07dd29fdca49228551e8d39fb4282b33dffaa23 (patch)
tree11287228578abf67300cf98f87ff45a18afa201f
parent067603106eba10e7648ccfe11834b10580fde2a9 (diff)
downloadphp-git-f07dd29fdca49228551e8d39fb4282b33dffaa23.tar.gz
Fixed problem introduced in a763929 (fixing bug #61347).
The test added in 8c44c85 should now pass.
-rwxr-xr-xext/spl/spl_array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index c8384d846d..6e9525e5ce 100755
--- a/ext/spl/spl_array.c
+++ b/ext/spl/spl_array.c
@@ -636,7 +636,7 @@ SPL_METHOD(Array, offsetExists)
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &index) == FAILURE) {
return;
}
- RETURN_BOOL(spl_array_has_dimension_ex(0, getThis(), index, 0 TSRMLS_CC));
+ RETURN_BOOL(spl_array_has_dimension_ex(0, getThis(), index, 2 TSRMLS_CC));
} /* }}} */
/* {{{ proto mixed ArrayObject::offsetGet(mixed $index)