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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: flying at dom dot natm dot ru
New email:
PHP Version: OS:

 

 [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: Tue May 07 01:01:30 2024 UTC