xml_set_element_handler and xml_parse
| From: | Jeremy S. Johnstone | Date: | Sun, 29 Jun 2003 02:38:46 +0000 |
| Subject: | xml_set_element_handler and xml_parse | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-2960@lists.php.net to get a copy of this message | ||
I am running into a strange problem which goes in direct opposition to
what is said in the documentation. I need to know what is the correct
behaviour before I update the documentation.
Problem is this:
With the function xml_set_element_handler, if you don't set an actual
end element handler (you set it to "" or FALSE) the function xml_parse
will return the following error:
Xml_parse(): Unable to call handler () in /path/to/script on line ##
The documentation explicitely states that "If a handler function is set
to an empty string, or FALSE, the handler in question is disabled."
If I create a dummy function which actually does absolutely nothing and
put it's name as the end element handler I do not get the above error
message.
Am I doing something wrong, is this a bug, or should I update the
documentation for this function?
PHP version: 4.3.2
XML expat version: 1.95.4
,,,
(Ô Ô)
===oOO==(_)==Ooo===
Jeremy Johnstone
jsjohnst@php.net
.oooO Oooo.
======( )=( )======
\ ( ) /
\_) (_/