# ext/xml handlers currently broken?

- Thread: https://externals.io/message/786
- Original archive: https://news-web.php.net/php.internals/786
- Started by Jan Schneider on 2003-04-08T11:35:03+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #786 — Jan Schneider — 2003-04-08T11:35:03+00:00

URL: https://externals.io/message/786#786

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

---

## #791 — Chris Vandomelen — 2003-04-08T15:51:22+00:00

URL: https://externals.io/message/786#791 · In reply to: #786

> 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 ...
>
<snip>

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
