Re: [PHP] Re: $this in an XML data handler ... in a class

2002-07-04 Thread Peter Clarke
I hadn't noticed that. My php.ini was set to on, changing it to off gave the warning. Having changed: xml_set_object($this->parser,&$this); to: xml_set_object($this->parser,$this); Stops the warning and the parser works fine. This is the class I'm using and it works fine: class parse_words_xml

Re: [PHP] Re: $this in an XML data handler ... in a class

2002-07-03 Thread Clay Loveless
Unfortunately, the xml_set_object function does not work to solve this problem. I tried using it, and my results were the same as they were when I was not using it. [I found that the array($this, 'function_name') method instead of 'string function_name' for the xml_set_*_handler functions worked

[PHP] Re: $this in an XML data handler ... in a class

2002-07-03 Thread Peter Clarke
"Clay Loveless" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Here's a brain-bender ... At least it is for me at the moment. : ) > > When I use an XML parser inside a class, the xml_*_handler functions aren't > recognizing "$this->" variables. I can kind of s