ID: 38813
User updated by: ladislav dot prosek at matfyz dot cz
-Summary: DOMEntityReference->__construct crashed when called
explicitly
Reported By: ladislav dot prosek at matfyz dot cz
Status: Open
Bug Type: DOM XML related
Operating System: Windows XP SP2 Pro
PHP Version: 5.1.6
New Comment:
Correcting the summary (crashed -> crashes).
Previous Comments:
------------------------------------------------------------------------
[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