ID:               27180
 Updated by:       [EMAIL PROTECTED]
 Reported By:      drm at melp dot nl
 Status:           Open
-Bug Type:         Documentation problem
+Bug Type:         XML related
 Operating System: Windows XP
 PHP Version:      4.3.4
 New Comment:

is this really a doc problem??


Previous Comments:
------------------------------------------------------------------------

[2004-02-07 11:15:12] drm at melp dot nl

Description:
------------
Apache hangs when callback parameters are defined in an array (obj&
obj, string methodName) form.

I suggest the documentation type hints are changed from
xml_set_*_handler ( resource, callback, ... )

to
xml_set_*_handler ( resource, string ...)

since the an array ( ... ) notation for callbacks should be correct
according to http://nl.php.net/manual/en/language.pseudo-types.php

Note that it does the parsing until some point at the end of the XML
document. I can't quite reproduce where exactly it hangs, but i think
its the cleaning up part of the parser when the parsing is done (the
$final of xml_parse must be true to reproduce this)

or you could fix the bug, of course :P



Reproduce code:
---------------
xml_set_element_handler ( 
   $this->parserResource, 
   array ( &$this, 'startElementHandler' ),
   array ( &$this, 'endElementHandler' )
);


Expected result:
----------------
don't hang apache ;)

Actual result:
--------------
hangs apache, (99% cpu), probably an endless loop?


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27180&edit=1

Reply via email to