com php-src: Embeds the content of the DTD in the DOCTYPE declaration of the XML files.: ext/dom/tests/DOMDocument_loadXML_variation 4.phpt
ext/dom/tests/book_with_dtd2.xml ext/dom /tests/wrong_book_with_dtd2.xml
| From: | Stanislav Malyshev | Date: | Sun, 11 Aug 2013 01:02:08 +0000 |
| Subject: | com php-src: Embeds the content of the DTD in the DOCTYPE declaration of the XML files.: ext/dom/tests/DOMDocument_loadXML_variation 4.phpt ext/dom/tests/book_with_dtd2.xml ext/dom /tests/wrong_book_with_dtd2.xml |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72910@lists.php.net to get a copy of this message | ||
Commit: 1a5c460ea2f74c46f87e5a92631506a35eeb6aa0
Author: Antonio Diaz Ruiz <dejalatele@gmail.com> Tue, 25 Jun 2013 22:09:38 +0200
Committer: Stanislav Malyshev <stas@php.net> Sat, 10 Aug 2013 18:02:08 -0700
Parents: 5f5ff92bc0c96ecc1d6b9e3bd7ec5fbc0aef7a8d
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1a5c460ea2f74c46f87e5a92631506a35eeb6aa0
Log:
Embeds the content of the DTD in the DOCTYPE declaration of the XML files.
Changed paths:
M ext/dom/tests/DOMDocument_loadXML_variation4.phpt
M ext/dom/tests/book_with_dtd2.xml
M ext/dom/tests/wrong_book_with_dtd2.xml
Diff:
diff --git a/ext/dom/tests/DOMDocument_loadXML_variation4.phpt
b/ext/dom/tests/DOMDocument_loadXML_variation4.phpt
index 5960daa..4f1ea37 100644
--- a/ext/dom/tests/DOMDocument_loadXML_variation4.phpt
+++ b/ext/dom/tests/DOMDocument_loadXML_variation4.phpt
@@ -21,5 +21,12 @@ EXPECTED_RESULT=1
domdocumentloadxml_test_method_savexml.php
--EXPECT--
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE books SYSTEM "ext/dom/tests/books.dtd">
+<!DOCTYPE books [
+<!ENTITY entitest "entity is only for test purposes">
+<!ATTLIST title default CDATA "default title">
+<!ELEMENT books (book)*>
+<!ELEMENT book (title , author)>
+<!ELEMENT title (#PCDATA)>
+<!ELEMENT author (#PCDATA)>
+]>
<books><book><title default="default title">The Grapes of
Wrath</title><author>John Steinbeck</author></book><book><title
default="default title">The Pearl</title><author>John
Steinbeck</author></book><book><title default="default
title">entity is only for test purposes</title><author>data for
test</author></book></books>
diff --git a/ext/dom/tests/book_with_dtd2.xml b/ext/dom/tests/book_with_dtd2.xml
index 1b1478d..aeb4f0b 100644
--- a/ext/dom/tests/book_with_dtd2.xml
+++ b/ext/dom/tests/book_with_dtd2.xml
@@ -1,5 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE books SYSTEM "ext/dom/tests/books.dtd">
+<!DOCTYPE books [
+<!ENTITY entitest "entity is only for test purposes">
+<!ATTLIST title default CDATA "default title">
+<!ELEMENT books (book*)>
+<!ELEMENT book (title, author)>
+<!ELEMENT title (#PCDATA)>
+<!ELEMENT author (#PCDATA)>
+]>
<books>
<book>
<title>The Grapes of Wrath</title>
diff --git a/ext/dom/tests/wrong_book_with_dtd2.xml b/ext/dom/tests/wrong_book_with_dtd2.xml
index aad520f..6c49deb 100644
--- a/ext/dom/tests/wrong_book_with_dtd2.xml
+++ b/ext/dom/tests/wrong_book_with_dtd2.xml
@@ -1,5 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE books SYSTEM "ext/dom/tests/books.dtd">
+<!DOCTYPE books [
+<!ENTITY entitest "entity is only for test purposes">
+<!ATTLIST title default CDATA "default title">
+<!ELEMENT books (book)*>
+<!ELEMENT book (title , author)>
+<!ELEMENT title (#PCDATA)>
+<!ELEMENT author (#PCDATA)>
+]>
<books>
<book>
<title>The Grapes of Wrath</title>