]> granicus.if.org Git - php/commitdiff
- Fix 40442
authorMarcus Boerger <helly@php.net>
Fri, 6 Apr 2007 17:57:10 +0000 (17:57 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 6 Apr 2007 17:57:10 +0000 (17:57 +0000)
NEWS
ext/spl/spl_array.c

diff --git a/NEWS b/NEWS
index 53e63108770367e49ad849b47c960539e4f33515..259e773a4e385584070dd353f1360094c69e1e72 100644 (file)
--- 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)
index 924cc39847673c72d1bee47c680b800a7a6840f5..456e63681a8d3bd30ecb861fe200b71ee7b114c8 100755 (executable)
@@ -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)