#38813 [Opn->Asn]: DOMEntityReference->__construct crashes when called explicitly
| From: | tony2001@php.net | Date: | Wed, 13 Sep 2006 17:02:48 +0000 |
| Subject: | #38813 [Opn->Asn]: DOMEntityReference->__construct crashes when called explicitly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-102121@lists.php.net to get a copy of this message | ||
ID: 38813
Updated by: tony2001@php.net
Reported By: ladislav dot prosek at matfyz dot cz
-Status: Open
+Status: Assigned
Bug Type: DOM XML related
Operating System: Windows XP SP2 Pro
PHP Version: 5.1.6
-Assigned To:
+Assigned To: rrichards
Previous Comments:
------------------------------------------------------------------------
[2006-09-13 16:38:05] ladislav dot prosek at matfyz dot cz
Correcting the summary (crashed -> crashes).
------------------------------------------------------------------------
[2006-09-13 16:35:17] ladislav dot prosek at matfyz dot cz
Description:
------------
DOM XML classes contain __construct methods that behave in a quite
unexpected way. You can call the constructor explicitly ending up with
a broken object (e.g. "Couldn't fetch DOMAttr. Node no longer exists"
whenever you access a method/property of the object).
Nevertheless, the constructor of DOMEntityReference, which is the
subject of this report, is broken completely.
Reproduce code:
---------------
<?
$ent = new DOMEntityReference("a");
$ent->__construct("b");
?>
Expected result:
----------------
You decide :)
Actual result:
--------------
* CRASH *
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38813&edit=1