Skip to content

Commit d26e006

Browse files
committed
Fix bug 61868 ext\dom\tests\DOMDocument_validate_on_parse_variation.phpt fails
1 parent ec5421d commit d26e006

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

ext/dom/tests/DOMDocument_validate_on_parse_variation.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require_once('skipif.inc');
1212

1313
require_once('dom_test.inc');
1414

15-
chdir(__DIR__ . "/../examples");
15+
chdir(__DIR__);
1616
$XMLStringGood = file_get_contents('note.xml');
1717

1818
$dom = new DOMDocument;

ext/dom/tests/note.dtd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!ELEMENT note (to,from,heading,body)>
3+
<!ELEMENT to (#PCDATA)>
4+
<!ELEMENT from (#PCDATA)>
5+
<!ELEMENT heading (#PCDATA)>
6+
<!ELEMENT body (#PCDATA)>

ext/dom/tests/note.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE note SYSTEM "note.dtd">
3+
<note>
4+
<to>PHP User Group</to>
5+
<from>Shane</from>
6+
<heading>Reminder</heading>
7+
<body>Don't forget the meeting tonight!</body>
8+
</note>

0 commit comments

Comments
 (0)