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