# [patch] Zend/zend_object_handlers.c - bug #29378 (foreach() doesn't work with arrays returned by __get)

- Thread: https://externals.io/message/12698
- Original archive: https://news-web.php.net/php.internals/12698
- Started by Antony Dovgal on 2004-09-10T05:57:27+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

---

## #12698 — Antony Dovgal — 2004-09-10T05:57:27+00:00

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

Another one patch for ZE.
This one fixes the bug #29378.

It looks like this bug was done intentionally (I'm not sure, just an 
assumption), so zend_std_get_property_ptr_ptr() doesn't call __get.

Please look at the patch fro details.

-- 
Wbr,
Antony Dovgal aka tony2001
tony2001@phpclub.net || antony@dovgal.com

---

## #12763 — Stanislav Malyshev — 2004-09-13T15:50:15+00:00

URL: https://externals.io/message/12698#12763 · In reply to: #12698

AD>>It looks like this bug was done intentionally (I'm not sure, just an
AD>>assumption), so zend_std_get_property_ptr_ptr() doesn't call __get.

I'm not sure it should - this would confuse read/write operators like 
object increments. I think it should be talen care of elsewhere.
-- 
Stanislav Malyshev, Zend Products Engineer   
stas@zend.com  http://www.zend.com/ +972-3-6139665 ext.115

---

## #12844 — Antony Dovgal — 2004-09-14T14:06:50+00:00

URL: https://externals.io/message/12698#12844 · In reply to: #12763

On Mon, 13 Sep 2004 18:50:15 +0300 (IDT)
Stanislav Malyshev <stas@zend.com> wrote:

> AD>>It looks like this bug was done intentionally (I'm not sure, just
> AD>an>assumption), so zend_std_get_property_ptr_ptr() doesn't call
> AD>__get.
> 
> I'm not sure it should - this would confuse read/write operators like 
> object increments. 

Hmm.. could you provide any examples?
I just want to test them with the patch and see maybe I can adopt it.

>I think it should be talen care of elsewhere.

Any ideas where?

-- 
Wbr, 
Antony Dovgal aka tony2001
tony2001@phpclub.net || antony@dovgal.com
