# [PATCH] Bug #28822

- Thread: https://externals.io/message/10698
- Original archive: https://news-web.php.net/php.internals/10698
- Started by Florian Schaper on 2004-06-21T17:55:32+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #10698 — Florian Schaper — 2004-06-21T17:55:32+00:00

URL: https://externals.io/message/10698#10698

Should fix the "inverted" behavoiur of ArrayObject::offsetExists as
described in #28822

Maybe someone can take a look at it.

./regards

Florian

---

## #10699 — Derick Rethans — 2004-06-21T17:59:08+00:00

URL: https://externals.io/message/10698#10699 · In reply to: #10698

> 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

---

## #10700 — Florian Schaper — 2004-06-21T18:00:39+00:00

URL: https://externals.io/message/10698#10700 · In reply to: #10699

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)
