com php-src: Fixed problem introduced in a763929 (fixing bug #61347).: ext/spl/spl_array.c
| From: | Gustavo André dos Santos Lopes | Date: | Wed, 28 Mar 2012 12:04:41 +0000 |
| Subject: | com php-src: Fixed problem introduced in a763929 (fixing bug #61347).: ext/spl/spl_array.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68219@lists.php.net to get a copy of this message | ||
Commit: f07dd29fdca49228551e8d39fb4282b33dffaa23
Author: Gustavo André dos Santos Lopes <cataphract@php.net> Wed, 28 Mar 2012
13:04:41 +0100
Parents: 067603106eba10e7648ccfe11834b10580fde2a9
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f07dd29fdca49228551e8d39fb4282b33dffaa23
Log:
Fixed problem introduced in a763929 (fixing bug #61347).
The test added in 8c44c85 should now pass.
Bugs:
https://bugs.php.net/61347
Changed paths:
M ext/spl/spl_array.c
Diff:
f07dd29fdca49228551e8d39fb4282b33dffaa23
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index c8384d8..6e9525e 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)