[PATCH] Bug #28822

php.internals

Florian Schaper

22 years ago
Should fix the "inverted" behavoiur of ArrayObject::offsetExists as described in #28822 Maybe someone can take a look at it. ./regards Florian

Derick Rethans

22 years ago
On Mon, 21 Jun 2004, Florian Schaper wrote:
> Should fix the "inverted" behavoiur of ArrayObject::offsetExists as > described in #28822
Nothing is attached, please place it online and provide an URL to it. (Our mailinglist strips non-"text/plain" attachments). regards, Derick

Florian Schaper

22 years ago
Jup, noticed. Let's try that again: ------------- schnipp ----------------- --- spl_array.c 2004-06-20 20:30:30.000000000 +0200 +++ spl_array.c 2004-06-21 19:37:18.000000000 +0200 @@ -337,7 +337,7 @@ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &index) == FAILURE) { return; } - RETURN_BOOL(spl_array_has_dimension(getThis(), index, 1 TSRMLS_CC) == SUCCESS); + RETURN_BOOL(spl_array_has_dimension(getThis(), index, 1 TSRMLS_CC) != 0 ); } /* }}} */ /* {{{ proto bool ArrayObject::offsetGet(mixed $index)