Re: Bug in objects+XML

From: Date: Tue, 24 Apr 2001 18:31:26 +0000
Subject: Re: Bug in objects+XML
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-52300@lists.php.net to get a copy of this message
On Tue, Apr 24, 2001 at 08:00:47PM +0400, Vadka wrote: > > Hi! <frag> to get this working you have to say: class hallo { //... function &hallo($bla) { // ^ this is important! $this->parser = xml_parser_create(); xml_set_object($this->parser,$this); // ... } } and then instantiate using: $a = &new hallo($bla); // ^ important. the problem here a cyclic references _and_ $this _not_ being the instantiated object (unless u use this ugly ampersand hack as illustrated) tc > ----------------------- Script -------------------- <frag>

« previous php.dev (#52300) next »