# object handlers: get_properties, foreach and dumps behiavors

- Thread: https://externals.io/message/6937
- Original archive: https://news-web.php.net/php.internals/6937
- Started by Pierre-Alain Joye on 2004-01-09T17:53:05+00:00
- Messages: 1
- 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

---

## #6937 — Pierre-Alain Joye — 2004-01-09T17:53:05+00:00

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

Hello,

What is the difference between a call to get_properties from a dump
function (print_r,var_dump) and from a foreach?

I got a weird behiavor using it with my date extension.

The dumps work nicely as the foreach loops on the 1st property,
endlessly.

Implemention available in /pecl/date/date.c function date_properties_get
(http://cvs.php.net/co.php/pecl/date/date.c?login=2&r=1.6)

Any thought?

pierre
