mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
There's two issues here: - freeing of predefined entity declaration crashes (unique to 8.3 & master) - using multiple entity references for a single entity declaration crashes (since forever) The fix for the last issue is fairly easy to do on 8.3, but may require a slightly different approach on 8.2. Therefore, for now this is 8.3-only. Closes GH-13004.
47 lines
762 B
PHP
47 lines
762 B
PHP
--TEST--
|
|
Freeing of a predefined DOMEntityReference
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
$ref = new DOMEntityReference("amp");
|
|
var_dump($ref);
|
|
?>
|
|
--EXPECT--
|
|
object(DOMEntityReference)#1 (17) {
|
|
["nodeName"]=>
|
|
string(3) "amp"
|
|
["nodeValue"]=>
|
|
NULL
|
|
["nodeType"]=>
|
|
int(5)
|
|
["parentNode"]=>
|
|
NULL
|
|
["parentElement"]=>
|
|
NULL
|
|
["childNodes"]=>
|
|
string(22) "(object value omitted)"
|
|
["firstChild"]=>
|
|
string(22) "(object value omitted)"
|
|
["lastChild"]=>
|
|
string(22) "(object value omitted)"
|
|
["previousSibling"]=>
|
|
NULL
|
|
["nextSibling"]=>
|
|
NULL
|
|
["attributes"]=>
|
|
NULL
|
|
["isConnected"]=>
|
|
bool(false)
|
|
["namespaceURI"]=>
|
|
NULL
|
|
["prefix"]=>
|
|
string(0) ""
|
|
["localName"]=>
|
|
NULL
|
|
["baseURI"]=>
|
|
NULL
|
|
["textContent"]=>
|
|
string(0) ""
|
|
}
|