Re: Help wanted: Operator -> and a class in a PHP extension

From: Date: Fri, 20 Jul 2001 07:30:43 +0000
Subject: Re: Help wanted: Operator -> and a class in a PHP extension
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-60354@lists.php.net to get a copy of this message
Quoting David Eriksson <david@2good.nu>: > > This time, the last echo line will get the value of $s1->a and not > > $s2->a. > > > > handle_property_get is only called on the $s1 instance and not on > the > > $s2 > > instance of the object. > > > > I will write a PHP extension that just shows this "feature". > > Now that I have written the special extension to test this, I am > beginning to > suspekt an error in the way I treat the zend_property_reference > parameter passed > to the handlers that get/set properties. > > Would someone who be able to explain this structure to me? Maybe Zeev? > :-) > > I'll read the source meanwhile... :-) It was, of course, my own fault. I did not use the zend_property_reference parameter properly. Like anyone cares... :-) Regards, -\- David Eriksson -/- "An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work." - Richard B. Johnson

« previous php.dev (#60354) next »