object handlers: get_properties, foreach and dumps behiavors

From: Date: Fri, 09 Jan 2004 17:53:05 +0000
Subject: object handlers: get_properties, foreach and dumps behiavors
Groups: php.internals 
Request: Send a blank email to internals+get-6937@lists.php.net to get a copy of this message
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

« previous php.internals (#6937) next »