Re: print_r unaware of object's read_property handler

From: Date: Fri, 16 Feb 2007 09:45:45 +0000
Subject: Re: print_r unaware of object's read_property handler
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-4548@lists.php.net to get a copy of this message
Piotr Pokora wrote: > mike@php.net (Michael Wallner) wrote: > >>> 2. Update ce.default_properties hash when class is registered. >>> Is it safe? ZEND1 segfaulted with such implementation. >> No idea about ZE1, but this (2) is the way to go. > > OK, thank you. > Can you *all guys* confirm this? > > Everybody all over the world knows how's ZEND documentation looks like. > Do not blame me I am confused and ask ( stupid in one's opinion ) questions. Well, best docs can be found in cvs/php-src/ and cvs/pecl/ :) > I am sure I have seen ( about year ago ) some mail from zend dev guy who told > that this is the way to initialize default properties. You mean (1)? Well, it's fine to add non-standard dynamic properties like: <?php class c { // no declarations function c() { $this->prop1 = 1; $this->prop2 = 2; } } ?> > Now you confirm this , but antony says I am trying to do something weird. He probably means something else, because often it is very hard to grasp what you are trying to explain and what your question actually is. > Antony and some other guy can not agree about my bug reported @ bugs.php.net. There was only Tony, who really replied to your report, and this in an extra ordinary kind way. The remaining 2 comments were me, shooting back, and Ilia, who obviously didn't read the report carefully enough. > What should I think? > > I do not exepct long howto "do it like this and then this and then that , etc...". > I just need to know what solution is working. CVS, LXR etc help a lot at the beginning. Regards, -- Michael

« previous php.pecl.dev (#4548) next »