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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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 28 02:01:31 2024 UTC