diff options
author | Anatol Belski <ab@php.net> | 2017-02-01 20:22:40 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-02-01 20:22:40 +0100 |
commit | 61438e9d4b5f6fdf46bc33870003da92d9911f6f (patch) | |
tree | 27e4a0dbf438a9f8c950ac3c312ee4f7b8d0ecc9 | |
parent | 35f6a5c4815341b0fc18375c9daf41fe8a63d256 (diff) | |
download | php-git-61438e9d4b5f6fdf46bc33870003da92d9911f6f.tar.gz |
Revert "fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)"
This reverts commit 62938bf08806129b42b17e74d79a450c30d4ff30.
-rw-r--r-- | ext/dom/document.c | 3 | ||||
-rw-r--r-- | ext/dom/tests/DOMDocument_savexml_basic2.phpt | 33 |
2 files changed, 0 insertions, 36 deletions
diff --git a/ext/dom/document.c b/ext/dom/document.c index d8e950d2c1..c7e4f8e7a5 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -1628,9 +1628,6 @@ PHP_FUNCTION(dom_document_savexml) doc_props = dom_get_doc_props(intern->document); format = doc_props->formatoutput; - if (format) { - options = options | XML_SAVE_FORMAT; - } buf = xmlBufferCreate(); if (!buf) { diff --git a/ext/dom/tests/DOMDocument_savexml_basic2.phpt b/ext/dom/tests/DOMDocument_savexml_basic2.phpt deleted file mode 100644 index 7c01014808..0000000000 --- a/ext/dom/tests/DOMDocument_savexml_basic2.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -DOM Document: saveXML with createElement and formatOutput ---CREDITS-- -CHU Zhaowei <jhdxr@php.net> ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -$dom = new domDocument('1.0', 'UTF-8'); -$dom->formatOutput = true; - -$root = $dom->createElement('root'); -$dom->appendChild($root); - -$child1 = $dom->createElement('testsuite'); -$root->appendChild($child1); - -$child11 = $dom->createElement('testcase'); -$child11->setAttribute('name', 'leaf1'); -$child12 = $dom->createElement('testcase'); -$child12->setAttribute('name', 'leaf2'); -$child1->appendChild($child11); -$child1->appendChild($child12); - -echo $dom->saveXml(); ---EXPECT-- -<?xml version="1.0" encoding="UTF-8"?> -<root> - <testsuite> - <testcase name="leaf1"/> - <testcase name="leaf2"/> - </testsuite> -</root>
\ No newline at end of file |