Re: print_r unaware of object's read_property handler
| From: | Antony Dovgal | Date: | Thu, 15 Feb 2007 13:13:20 +0000 |
| Subject: | Re: print_r unaware of object's read_property handler | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-4521@lists.php.net to get a copy of this message | ||
On 02/15/2007 03:57 PM, Piotr Pokora wrote:
Basic concept is: 1. "Register" object's properties in constructor ( using add_property_xxxx ) 2. Use standard get_properties handler which returns hash updated in constructor 3. Use write and read property hooks to set GObject's Gvalue from zval or return zval from GValue. This approach works pretty fine for OOP , but fails with print_r which expects fully updated hash properties.Could you elaborate on this and explain what you mean by "fails"? This approach seem to work pretty fine for everybody but you. -- Wbr, Antony Dovgal