Re: XML parser quirk

From: Date: Thu, 12 Oct 2000 04:21:38 +0000
Subject: Re: XML parser quirk
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-350@lists.php.net to get a copy of this message
Hello, On Wed, Oct 11, 2000 at 15:47 +0400, Mikhail Zabaluev wrote: > > Playing with XML_Parser, I was discouraged by the fact that > xml_set_object() actually copies an object even if it's been passed by > reference. This is a PITA when you want tag handlers to store parsed data > into object's properties and use these properties afterwards. You have to > assign references to these propeties in order to access values out of > handler context. Another interesting effect: if a parser object references other object which in turn has that parser object as a member (i.e. a cyclic referencing is present), this master object is copied inside the parser as well. If the parser object references just members of its master object, everything is fine. -- Stay tuned, MhZ mailto:mookid@sigent.ru ----------- WARNING TO ALL PERSONNEL: Firings will continue until morale improves.

« previous php.pear (#350) next »