com php-src: Adds 2 new xml files which include the dtd path relative to the base directory for the php source code. It fixs the fail on the load of
the dtd in the tests modified by this commit.: ext/dom/tests/DO MDocument_loadXML_variation1.phpt ext/dom/tests/DOMDo cument_loadXML_variation2.phpt
ext/dom/tests/DOMDocum ent_loadXML_variation4.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:00 +0000 |
| Subject: | com php-src: Adds 2 new xml files which include the dtd path relative to the base directory for the php source code. It fixs the fail on the load of the dtd in the tests modified by this commit.: ext/dom/tests/DO MDocument_loadXML_variation1.phpt ext/dom/tests/DOMDo cument_loadXML_variation2.phpt ext/dom/tests/DOMDocum ent_loadXML_variation4.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-72911@lists.php.net to get a copy of this message | ||
Commit: 5f5ff92bc0c96ecc1d6b9e3bd7ec5fbc0aef7a8d
Author: Antonio Diaz Ruiz <dejalatele@gmail.com> Mon, 24 Jun 2013 22:39:27 +0200
Committer: Stanislav Malyshev <stas@php.net> Sat, 10 Aug 2013 18:02:00 -0700
Parents: 24f36934ad4b9d00a4c96da252497a4091bb28e6
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5f5ff92bc0c96ecc1d6b9e3bd7ec5fbc0aef7a8d
Log:
Adds 2 new xml files which include the dtd path relative to the base directory for the php source
code.
It fixs the fail on the load of the dtd in the tests modified by this commit.
Changed paths:
M ext/dom/tests/DOMDocument_loadXML_variation1.phpt
M ext/dom/tests/DOMDocument_loadXML_variation2.phpt
M ext/dom/tests/DOMDocument_loadXML_variation4.phpt
A ext/dom/tests/book_with_dtd2.xml
A ext/dom/tests/wrong_book_with_dtd2.xml
Diff:
diff --git a/ext/dom/tests/DOMDocument_loadXML_variation1.phpt
b/ext/dom/tests/DOMDocument_loadXML_variation1.phpt
index eb5c693..5581375 100644
--- a/ext/dom/tests/DOMDocument_loadXML_variation1.phpt
+++ b/ext/dom/tests/DOMDocument_loadXML_variation1.phpt
@@ -13,7 +13,7 @@ assert.bail=true
--SKIPIF--
<?php include('skipif.inc'); ?>
--ENV--
-XML_FILE=/book_with_dtd.xml
+XML_FILE=/book_with_dtd2.xml
LOAD_OPTIONS=LIBXML_DTDLOAD
EXPECTED_RESULT=1
--FILE_EXTERNAL--
diff --git a/ext/dom/tests/DOMDocument_loadXML_variation2.phpt
b/ext/dom/tests/DOMDocument_loadXML_variation2.phpt
index a1e6e80..71f638e 100644
--- a/ext/dom/tests/DOMDocument_loadXML_variation2.phpt
+++ b/ext/dom/tests/DOMDocument_loadXML_variation2.phpt
@@ -13,7 +13,7 @@ assert.bail=true
--SKIPIF--
<?php include('skipif.inc'); ?>
--ENV--
-XML_FILE=/wrong_book_with_dtd.xml
+XML_FILE=/wrong_book_with_dtd2.xml
LOAD_OPTIONS=LIBXML_DTDVALID
EXPECTED_RESULT=1
--FILE_EXTERNAL--
diff --git a/ext/dom/tests/DOMDocument_loadXML_variation4.phpt
b/ext/dom/tests/DOMDocument_loadXML_variation4.phpt
index 6adefa8..5960daa 100644
--- a/ext/dom/tests/DOMDocument_loadXML_variation4.phpt
+++ b/ext/dom/tests/DOMDocument_loadXML_variation4.phpt
@@ -14,12 +14,12 @@ assert.bail=true
--SKIPIF--
<?php include('skipif.inc'); ?>
--ENV--
-XML_FILE=/book_with_dtd.xml
+XML_FILE=/book_with_dtd2.xml
LOAD_OPTIONS=LIBXML_DTDATTR|LIBXML_NOCDATA|LIBXML_NOENT|LIBXML_NOBLANKS
EXPECTED_RESULT=1
--FILE_EXTERNAL--
domdocumentloadxml_test_method_savexml.php
--EXPECT--
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE books SYSTEM "books.dtd">
+<!DOCTYPE books SYSTEM "ext/dom/tests/books.dtd">
<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
new file mode 100644
index 0000000..1b1478d
--- /dev/null
+++ b/ext/dom/tests/book_with_dtd2.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE books SYSTEM "ext/dom/tests/books.dtd">
+<books>
+ <book>
+ <title>The Grapes of Wrath</title>
+ <author>John Steinbeck</author>
+ </book>
+ <book>
+ <title>The Pearl</title>
+ <author>John Steinbeck</author>
+ </book>
+ <book>
+ <title>&entitest;</title>
+ <author><![CDATA[data for test]]></author>
+ </book>
+</books>
diff --git a/ext/dom/tests/wrong_book_with_dtd2.xml b/ext/dom/tests/wrong_book_with_dtd2.xml
new file mode 100644
index 0000000..aad520f
--- /dev/null
+++ b/ext/dom/tests/wrong_book_with_dtd2.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE books SYSTEM "ext/dom/tests/books.dtd">
+<books>
+ <book>
+ <title>The Grapes of Wrath</title>
+ <author>John Steinbeck</author>
+ <author>John Steinbeck</author>
+ </book>
+ <book>
+ <title>The Pearl</title>
+ <author>John Steinbeck</author>
+ </book>
+</books>