#26981 [NEW]: xml_parse looses object reference
| From: | schst@php.net | Date: | Tue, 20 Jan 2004 19:33:52 +0000 |
| Subject: | #26981 [NEW]: xml_parse looses object reference | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-53651@lists.php.net to get a copy of this message | ||
From: schst@php.net
Operating system: Windows
PHP version: 5.0.0b3 (beta3)
PHP Bug Type: XML related
Bug description: xml_parse looses object reference
Description:
------------
If using xml_set_object() to register handlers in an object, xml_parse
sometimes looses the reference to the object and displays a warning:
Warning: xml_parse() [function.xml-parse]: Unable to call handler
startHandler() in C:\php4\PEAR\XML\Parser.php on line 264
Try PEAR::XML_RDDL to see the bug in action.
If registering xml_set_element_handler( $p, array( $obj, 'method' ),
array( $obj, 'method' ) ) it seems to work fine.
--
Edit bug report at http://bugs.php.net/?id=26981&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26981&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26981&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26981&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26981&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26981&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26981&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26981&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26981&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26981&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26981&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26981&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26981&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26981&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26981&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26981&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26981&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26981&r=float