ID: 46406 Updated by: [EMAIL PROTECTED] Reported By: hannes dot magnusson at gmail dot com -Status: Open +Status: Closed Bug Type: DOM XML related Operating System: Irrelevant PHP Version: 5.2.7RC2 New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-10-28 13:16:11] hannes dot magnusson at gmail dot com Description: ------------ Trying to unregister already unregistered nodeclass throws E_FATAL.. Unregistering nodeclass before any nodeclass is registered works fine however. Reproduce code: --------------- <?php class elm extends DOMNode {} $dom = new DOMDocument; // Unregistering nothing, works fine $dom->registerNodeClass("DOMNode", null); $dom->registerNodeClass("DOMNode", "elm"); // Unregister "elm", works fine $dom->registerNodeClass("DOMNode", null); // Unregistering nothing, E_FATAL $dom->registerNodeClass("DOMNode", null); Expected result: ---------------- Nothing to happen. Actual result: -------------- Fatal error: DOMDocument::registerNodeClass(): Class (null) could not be registered. in /crypto/bjori/- on line 13 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46406&edit=1