Test: /ext/dom/tests/bug69846.phpt - Version 7.2.0-dev        

Bug #69846 Segmenation fault (access violation) when iterating over DOMNodeList
Submitted: 2015-06-16 07:04:59 Modified: 2015-06-19 10:49:24
From: jan.slabon Assigned: ab
Status: Closed Package: Reproducible crash
PHP Version: 7.0.0alpha1 OS: Windows 7 Pro (x64)

There are 4 different diffs reported by users for this test.

Count Diff
8 (57%)
002+ object(DOMText)#7 (15) {
003+ ["nodeName"]=>
004+ string(5) "#text"
005+ ["nodeValue"]=>
002- object(DOMText)#%d (18) {
003- ["wholeText"]=>
006- ["data"]=>
007- string(3) "
008- "
009- ["length"]=>
008+ ["nodeType"]=>
010+ ["parentNode"]=>
011+ NULL
012+ ["childNodes"]=>
011- ["nodeName"]=>
012- string(5) "#text"
013- ["nodeValue"]=>
014- string(3) "
015- "
016- ["nodeType"]=>
017- int(3)
018- ["parentNode"]=>
020- ["childNodes"]=>
021- NULL
036+ object(DOMElement)#7 (15) {
044- object(DOMElement)#%d (17) {
045- ["tagName"]=>
046- string(5) "form1"
047- ["schemaTypeInfo"]=>
048- NULL
076+ object(DOMText)#7 (15) {
077+ ["nodeName"]=>
078+ string(5) "#text"
079+ ["nodeValue"]=>
082+ ["nodeType"]=>
083+ int(3)
084+ ["parentNode"]=>
085+ NULL
086+ ["childNodes"]=>
087+ NULL
088+ ["firstChild"]=>
089+ NULL
090+ ["lastChild"]=>
091+ NULL
092+ ["previousSibling"]=>
093+ NULL
094+ ["attributes"]=>
095+ NULL
096+ ["ownerDocument"]=>
097+ string(22) "(object value omitted)"
098+ ["namespaceURI"]=>
099+ NULL
100+ ["prefix"]=>
101+ string(0) ""
102+ ["localName"]=>
103+ NULL
104+ ["baseURI"]=>
088- object(DOMText)#%d (18) {
089- ["wholeText"]=>
092- ["data"]=>
093- string(1) "
094- "
095- ["length"]=>
096- int(1)
097- ["nodeName"]=>
098- string(5) "#text"
099- ["nodeValue"]=>
100- string(1) "
101- "
102- ["nodeType"]=>
103- int(3)
104- ["parentNode"]=>
106+ ["textContent"]=>
107+ string(1) "
108+ "
109+ }
110+ ===DONE===
106- ["childNodes"]=>
107- NULL
108- ["firstChild"]=>
109- NULL
110- ["lastChild"]=>
111- NULL
112- ["previousSibling"]=>
113- NULL
114- ["attributes"]=>
115- NULL
116- ["ownerDocument"]=>
117- string(22) "(object value omitted)"
118- ["namespaceURI"]=>
119- NULL
120- ["prefix"]=>
121- string(0) ""
122- ["localName"]=>
123- NULL
124- ["baseURI"]=>
125- NULL
126- ["textContent"]=>
127- string(1) "
128- "
129- }
130- ===DONE===
2 (14%)
046+ object(DOMElement)#7 (17) {
046- object(DOMElement)#%d (18) {
2 (14%)
044+ object(DOMElement)#7 (16) {
044- object(DOMElement)#%d (17) {
2 (14%)
044+ object(DOMElement)#7 (15) {
044- object(DOMElement)#%d (17) {
045- ["tagName"]=>
046- string(5) "form1"
047- ["schemaTypeInfo"]=>
048- NULL