note 50906 added to function.xml-set-element-handler

From: Date: Sun, 13 Mar 2005 21:34:33 +0000
Subject: note 50906 added to function.xml-set-element-handler
Groups: php.notes 
Request: Send a blank email to php-notes+get-86372@lists.php.net to get a copy of this message
In response to aw at avatartechnology dot com... In response to landb at mail dot net... When your functions are in an object: Careful ! Don't forget to add: & (reference) to your parameters. xml_set_element_handler($parser, array(&$this,"_startElement"), array(&$this,"_endElement")); --> xmlparse will work on your object (good). instead of: xml_set_element_handler($parser, array($this,"_startElement"), array($this,"_endElement")); ---> xmlparse will work on a COPY of your object (often bad) Vin-s (sorry for my english) ---- Manual Page -- http://www.php.net/manual/en/function.xml-set-element-handler.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50906 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50906&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50906&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50906&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50906&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50906&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50906&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86372) next »