Hi!
It looks like the xml_set_*_handler() functions are currently broken.
Code that works perfectly with the PHP_4_3 branch fails with HEAD and
produces messages like:
Warning: xml_parse(): Unable to call handler startElement() in ...
The affected code is nothing special:
xml_parse($this->_parser, $this->_buffer, true);
For any reason this call:
result = call_user_function(EG(function_table), &parser->object, handler,
retval, argc, argv TSRMLS_CC);
in xml.c/xml_call_handler fails.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
<snip>Hi!
It looks like the xml_set_*_handler() functions are currently broken.
Code that works perfectly with the PHP_4_3 branch fails with HEAD and
produces messages like:Warning:
xml_parse(): Unable to call handler startElement() in ...
Will the attached patch fix the problem? It seems to be the appropriate
fix, since all that appears to be wrong is the usage of the global
function table instead of the object's function table.
(I'd test it, but I've made my share of changes to ZE2 that are doubtful
at best to be committed anyway...)
Chris