From: Antonio Diaz Ruiz Date: Mon, 24 Jun 2013 20:39:27 +0000 (+0200) Subject: Adds 2 new xml files which include the dtd path relative to the base directory for... X-Git-Tag: php-5.5.2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f5ff92bc0c96ecc1d6b9e3bd7ec5fbc0aef7a8d;p=php 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. --- diff --git a/ext/dom/tests/DOMDocument_loadXML_variation1.phpt b/ext/dom/tests/DOMDocument_loadXML_variation1.phpt index eb5c693e42..558137526f 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-- --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 a1e6e80220..71f638efc1 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-- --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 6adefa8414..5960daac86 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-- --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-- - + The Grapes of WrathJohn SteinbeckThe PearlJohn Steinbeckentity is only for test purposesdata for test diff --git a/ext/dom/tests/book_with_dtd2.xml b/ext/dom/tests/book_with_dtd2.xml new file mode 100644 index 0000000000..1b1478d02e --- /dev/null +++ b/ext/dom/tests/book_with_dtd2.xml @@ -0,0 +1,16 @@ + + + + + The Grapes of Wrath + John Steinbeck + + + The Pearl + John Steinbeck + + + &entitest; + + + 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 0000000000..aad520f9b6 --- /dev/null +++ b/ext/dom/tests/wrong_book_with_dtd2.xml @@ -0,0 +1,13 @@ + + + + + The Grapes of Wrath + John Steinbeck + John Steinbeck + + + The Pearl + John Steinbeck + +