#46406 [Opn->Csd]: Unregistering nodeclass throws E_FATAL
| From: | rrichards@php.net | Date: | Wed, 29 Oct 2008 21:27:12 +0000 |
| Subject: | #46406 [Opn->Csd]: Unregistering nodeclass throws E_FATAL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130292@lists.php.net to get a copy of this message | ||
ID: 46406
Updated by: rrichards@php.net
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