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

Bug #28721 appendChild() and insertBefore() unset DOMText node arguments (includes patch)
Submitted: 2004-06-10 07:12:43 Modified: 2004-06-13 12:14:17
From: benjcarson Assigned:
Status: Closed Package: DOM XML related
PHP Version: 5CVS-2004-06-10 (dev) OS: Linux

There is 1 diff reported by users for this test.

Count Diff
17 (100%)
005+ Segmentation fault (core dumped)
006- name (value): #text ( t1 )
007+ Termsig=11
007- parent: name (value): p ( t1 X t2 xxx )
008- previousSibling: NULL
009- nextSibling: name (value): b (X)
010-
011- name (value): b (X)
012- parent: name (value): p ( t1 X t2 xxx )
013- previousSibling: name (value): #text ( t1 )
014- nextSibling: name (value): #text ( t2 )
015-
016- name (value): #text (X)
017- parent: name (value): b (X)
018- previousSibling: NULL
019- nextSibling: NULL
020-
021- name (value): #text ( t2 )
022- parent: name (value): p ( t1 X t2 xxx )
023- previousSibling: name (value): b (X)
024- nextSibling: name (value): #text ( xxx )
025-
026- name (value): #text ( xxx )
027- parent: name (value): p ( t1 X t2 xxx )
028- previousSibling: name (value): #text ( t2 )
029- nextSibling: NULL
030-
031- Append t1 to p:
032-
033- name (value): p (X t2 xxx t1 )
034- parent: NULL
035- previousSibling: NULL
036- nextSibling: NULL
037-
038- name (value): b (X)
039- parent: name (value): p (X t2 xxx t1 )
040- previousSibling: NULL
041- nextSibling: name (value): #text ( t2 )
042-
043- name (value): #text (X)
044- parent: name (value): b (X)
045- previousSibling: NULL
046- nextSibling: NULL
047-
048- name (value): #text ( t2 )
049- parent: name (value): p (X t2 xxx t1 )
050- previousSibling: name (value): b (X)
051- nextSibling: name (value): #text ( xxx )
052-
053- name (value): #text ( xxx )
054- parent: name (value): p (X t2 xxx t1 )
055- previousSibling: name (value): #text ( t2 )
056- nextSibling: name (value): #text ( t1 )
057-
058- name (value): #text ( t1 )
059- parent: name (value): p (X t2 xxx t1 )
060- previousSibling: name (value): #text ( xxx )
061- nextSibling: NULL
062-
063- t1 == ret: bool(true)
064-
065- div:
066-
067- name (value): div ( t3 t4 xxx )
068- parent: NULL
069- previousSibling: NULL
070- nextSibling: NULL
071-
072- name (value): #text ( t3 )
073- parent: name (value): div ( t3 t4 xxx )
074- previousSibling: NULL
075- nextSibling: name (value): b ()
076-
077- name (value): b ()
078- parent: name (value): div ( t3 t4 xxx )
079- previousSibling: name (value): #text ( t3 )
080- nextSibling: name (value): #text ( t4 )
081-
082- name (value): X ()
083- parent: name (value): b ()
084- previousSibling: NULL
085- nextSibling: NULL
086-
087- name (value): #text ( t4 )
088- parent: name (value): div ( t3 t4 xxx )
089- previousSibling: name (value): b ()
090- nextSibling: name (value): #text ( xxx )
091-
092- name (value): #text ( xxx )
093- parent: name (value): div ( t3 t4 xxx )
094- previousSibling: name (value): #text ( t4 )
095- nextSibling: NULL
096-
097- Insert t4 before t3:
098-
099- name (value): div ( t4 t3 xxx )
100- parent: NULL
101- previousSibling: NULL
102- nextSibling: NULL
103-
104- name (value): #text ( t4 )
105- parent: name (value): div ( t4 t3 xxx )
106- previousSibling: NULL
107- nextSibling: name (value): #text ( t3 )
108-
109- name (value): #text ( t3 )
110- parent: name (value): div ( t4 t3 xxx )
111- previousSibling: name (value): #text ( t4 )
112- nextSibling: name (value): b ()
113-
114- name (value): b ()
115- parent: name (value): div ( t4 t3 xxx )
116- previousSibling: name (value): #text ( t3 )
117- nextSibling: name (value): #text ( xxx )
118-
119- name (value): X ()
120- parent: name (value): b ()
121- previousSibling: NULL
122- nextSibling: NULL
123-
124- name (value): #text ( xxx )
125- parent: name (value): div ( t4 t3 xxx )
126- previousSibling: name (value): b ()
127- nextSibling: NULL
128-
129-
130- p:
131-
132- name (value): p (X t2 xxx t1 )
133- parent: NULL
134- previousSibling: NULL
135- nextSibling: NULL
136-
137- name (value): b (X)
138- parent: name (value): p (X t2 xxx t1 )
139- previousSibling: NULL
140- nextSibling: name (value): #text ( t2 )
141-
142- name (value): #text (X)
143- parent: name (value): b (X)
144- previousSibling: NULL
145- nextSibling: NULL
146-
147- name (value): #text ( t2 )
148- parent: name (value): p (X t2 xxx t1 )
149- previousSibling: name (value): b (X)
150- nextSibling: name (value): #text ( xxx )
151-
152- name (value): #text ( xxx )
153- parent: name (value): p (X t2 xxx t1 )
154- previousSibling: name (value): #text ( t2 )
155- nextSibling: name (value): #text ( t1 )
156-
157- name (value): #text ( t1 )
158- parent: name (value): p (X t2 xxx t1 )
159- previousSibling: name (value): #text ( xxx )
160- nextSibling: NULL
161-
162- Fragment:
163-
164- name (value): #document-fragment ()
165- parent: NULL
166- previousSibling: NULL
167- nextSibling: NULL
168-
169- name (value): #text ( t5 )
170- parent: name (value): #document-fragment ()
171- previousSibling: NULL
172- nextSibling: name (value): i ( frob )
173-
174- name (value): i ( frob )
175- parent: name (value): #document-fragment ()
176- previousSibling: name (value): #text ( t5 )
177- nextSibling: name (value): #text ( t6 )
178-
179- name (value): #text ( frob )
180- parent: name (value): i ( frob )
181- previousSibling: NULL
182- nextSibling: NULL
183-
184- name (value): #text ( t6 )
185- parent: name (value): #document-fragment ()
186- previousSibling: name (value): i ( frob )
187- nextSibling: NULL
188-
189- Appending fragment to p:
190-
191- name (value): p (X t2 xxx t1 t5 frob t6 )
192- parent: NULL
193- previousSibling: NULL
194- nextSibling: NULL
195-
196- name (value): b (X)
197- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
198- previousSibling: NULL
199- nextSibling: name (value): #text ( t2 )
200-
201- name (value): #text (X)
202- parent: name (value): b (X)
203- previousSibling: NULL
204- nextSibling: NULL
205-
206- name (value): #text ( t2 )
207- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
208- previousSibling: name (value): b (X)
209- nextSibling: name (value): #text ( xxx )
210-
211- name (value): #text ( xxx )
212- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
213- previousSibling: name (value): #text ( t2 )
214- nextSibling: name (value): #text ( t1 )
215-
216- name (value): #text ( t1 )
217- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
218- previousSibling: name (value): #text ( xxx )
219- nextSibling: name (value): #text ( t5 )
220-
221- name (value): #text ( t5 )
222- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
223- previousSibling: name (value): #text ( t1 )
224- nextSibling: name (value): i ( frob )
225-
226- name (value): i ( frob )
227- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
228- previousSibling: name (value): #text ( t5 )
229- nextSibling: name (value): #text ( t6 )
230-
231- name (value): #text ( frob )
232- parent: name (value): i ( frob )
233- previousSibling: NULL
234- nextSibling: NULL
235-
236- name (value): #text ( t6 )
237- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
238- previousSibling: name (value): i ( frob )
239- nextSibling: NULL
240-
241- Fragment:
242-
243- name (value): #document-fragment ()
244- parent: NULL
245- previousSibling: NULL
246- nextSibling: NULL
247-
248- div:
249-
250- name (value): div ( t4 t3 xxx )
251- parent: NULL
252- previousSibling: NULL
253- nextSibling: NULL
254-
255- name (value): #text ( t4 )
256- parent: name (value): div ( t4 t3 xxx )
257- previousSibling: NULL
258- nextSibling: name (value): #text ( t3 )
259-
260- name (value): #text ( t3 )
261- parent: name (value): div ( t4 t3 xxx )
262- previousSibling: name (value): #text ( t4 )
263- nextSibling: name (value): b ()
264-
265- name (value): b ()
266- parent: name (value): div ( t4 t3 xxx )
267- previousSibling: name (value): #text ( t3 )
268- nextSibling: name (value): #text ( xxx )
269-
270- name (value): X ()
271- parent: name (value): b ()
272- previousSibling: NULL
273- nextSibling: NULL
274-
275- name (value): #text ( xxx )
276- parent: name (value): div ( t4 t3 xxx )
277- previousSibling: name (value): b ()
278- nextSibling: NULL
279-
280- Inserting fragment before t4
281- Error (2) on line 109: DOMNode::insertBefore(): Document Fragment is empty
282-
283- name (value): div ( t4 t3 xxx )
284- parent: NULL
285- previousSibling: NULL
286- nextSibling: NULL
287-
288- name (value): #text ( t4 )
289- parent: name (value): div ( t4 t3 xxx )
290- previousSibling: NULL
291- nextSibling: name (value): #text ( t3 )
292-
293- name (value): #text ( t3 )
294- parent: name (value): div ( t4 t3 xxx )
295- previousSibling: name (value): #text ( t4 )
296- nextSibling: name (value): b ()
297-
298- name (value): b ()
299- parent: name (value): div ( t4 t3 xxx )
300- previousSibling: name (value): #text ( t3 )
301- nextSibling: name (value): #text ( xxx )
302-
303- name (value): X ()
304- parent: name (value): b ()
305- previousSibling: NULL
306- nextSibling: NULL
307-
308- name (value): #text ( xxx )
309- parent: name (value): div ( t4 t3 xxx )
310- previousSibling: name (value): b ()
311- nextSibling: NULL
312-
313- p:
314-
315- name (value): p (X t2 xxx t1 t5 frob t6 )
316- parent: NULL
317- previousSibling: NULL
318- nextSibling: NULL
319-
320- name (value): b (X)
321- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
322- previousSibling: NULL
323- nextSibling: name (value): #text ( t2 )
324-
325- name (value): #text (X)
326- parent: name (value): b (X)
327- previousSibling: NULL
328- nextSibling: NULL
329-
330- name (value): #text ( t2 )
331- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
332- previousSibling: name (value): b (X)
333- nextSibling: name (value): #text ( xxx )
334-
335- name (value): #text ( xxx )
336- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
337- previousSibling: name (value): #text ( t2 )
338- nextSibling: name (value): #text ( t1 )
339-
340- name (value): #text ( t1 )
341- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
342- previousSibling: name (value): #text ( xxx )
343- nextSibling: name (value): #text ( t5 )
344-
345- name (value): #text ( t5 )
346- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
347- previousSibling: name (value): #text ( t1 )
348- nextSibling: name (value): i ( frob )
349-
350- name (value): i ( frob )
351- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
352- previousSibling: name (value): #text ( t5 )
353- nextSibling: name (value): #text ( t6 )
354-
355- name (value): #text ( frob )
356- parent: name (value): i ( frob )
357- previousSibling: NULL
358- nextSibling: NULL
359-
360- name (value): #text ( t6 )
361- parent: name (value): p (X t2 xxx t1 t5 frob t6 )
362- previousSibling: name (value): i ( frob )
363- nextSibling: NULL