Re: [PHP-DEV] [RFC] Help debugging overloaded objects

2007-01-16 Thread Marcus Boerger
Hello Derick, I changed the code now to be easier understandable. In the patch the following happens. In the two if cases properties get initialized and in the third case where none of the ifs apply properties will remain NULL. Now in the later code is_temp isonlybeingused if properties is not N

Re: [PHP-DEV] [RFC] Help debugging overloaded objects

2007-01-15 Thread Derick Rethans
On Mon, 15 Jan 2007, Marcus Boerger wrote: > Any comments? Shouldn't you init is_temp here? As far as I can see it is not initialized in every code path, and there is an if() using it in the 3rd patch element here: > @@ -581,6 +581,7 @@ ZEND_API void zend_print_zval_r_ex(zend_ >

[PHP-DEV] [RFC] Help debugging overloaded objects

2007-01-15 Thread Marcus Boerger
Hello internals, the attached patch introduces a new handler to the engine that is supposed to help debugging overloaded objects. It allows to return a temporary hash rather then the object properties. This way an extension can show non properties in var_dump() and print_r(). It will be used in