php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17906 DOMXML crash
Submitted: 2002-06-21 13:22 UTC Modified: 2002-06-22 06:40 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: flying at dom dot natm dot ru Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.2.1 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
24 + 1 = ?
Subscribe to this entry?

 
 [2002-06-21 13:22 UTC] flying at dom dot natm dot ru
DOMXML crash at end of script execution when there is loaded XML document containing reference to entity, which contains reference to another entity in its substitute text. 

Here is small example to reproduce this bug:

<?php
$xml = '<?xml version="1.0"?>
<!DOCTYPE root [
<!ENTITY ent1 "some">
<!ENTITY ent2 "&ent1; text">
]>
<root>&ent1;</root>';

$xml = xmldoc($xml);
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-22 05:39 UTC] chregu@php.net
Can't reproduce your problem (on linux).

Please try the latest stable snapshot for windows
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
and report, if the problem still exist (there were some changes since 4.2.1 was released)

chregu
 [2002-06-22 06:40 UTC] flying at dom dot natm dot ru
Works well with latest snapshot, bug closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 12:01:30 2024 UTC