object handlers: get_properties, foreach and dumps behiavors

php.internals

Pierre-Alain Joye

22 years ago
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