From: Marcus Boerger Date: Fri, 6 Apr 2007 17:57:10 +0000 (+0000) Subject: - Fix 40442 X-Git-Tag: php-5.2.2RC1~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=515f4f6e6fca9188ef32d24d340b66d87a29ea6d;p=php - Fix 40442 --- diff --git a/NEWS b/NEWS index 53e6310877..259e773a4e 100644 --- a/NEWS +++ b/NEWS @@ -120,6 +120,8 @@ PHP NEWS methods). (Tony) - Fixed bug #40451 (addAttribute() may crash when used with non-existent child node). (Tony) +- Fixed bug #40442 (ArrayObject::offsetExists broke in 5.2.1, works in 5.2.0). + (olivier at elma dot fr, Marcus) - Fixed bug #40428 (imagepstext() doesn't accept optional parameter). (Pierre) - Fixed bug #40417 (Allow multiple instances of the same named PDO token in prepared statement emulation code). (Ilia) diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index 924cc39847..456e63681a 100755 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -520,7 +520,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, 1 TSRMLS_CC)); + RETURN_BOOL(spl_array_has_dimension_ex(0, getThis(), index, 0 TSRMLS_CC)); } /* }}} */ /* {{{ proto mixed ArrayObject::offsetGet(mixed $index)