From: Ilia Alshanetsky Date: Thu, 20 Oct 2005 19:22:55 +0000 (+0000) Subject: MFB51: Fixed tests to work with ZTS builds X-Git-Tag: RELEASE_0_9_1~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37015ffcfa83915ad00fb436464a0dbed117f82a;p=php MFB51: Fixed tests to work with ZTS builds --- diff --git a/ext/dom/tests/dom_xinclude.phpt b/ext/dom/tests/dom_xinclude.phpt index 92df048bc5..f9a3dd761e 100644 --- a/ext/dom/tests/dom_xinclude.phpt +++ b/ext/dom/tests/dom_xinclude.phpt @@ -8,20 +8,25 @@ array_search('compress.zlib', stream_get_wrappers()) or die('skip compress.zlib --FILE-- load(dirname(__FILE__)."/xinclude.xml"); + +$data = file_get_contents(dirname(__FILE__)."/xinclude.xml"); +$data = str_replace('compress.zlib://ext/dom/tests/','compress.zlib://'.dirname(__FILE__).'/', $data); + +$dom->loadXML($data); + $dom->xinclude(); print $dom->saveXML()."\n"; foreach ($dom->documentElement->childNodes as $node) { print $node->nodeName."\n"; } - ---EXPECT-- +?> +--EXPECTF-- - + The Grapes of Wrath John Steinbeck - + The Pearl John Steinbeck diff --git a/ext/zlib/tests/compress_zlib_wrapper.phpt b/ext/zlib/tests/compress_zlib_wrapper.phpt index 4bed91a123..de6b3d80b9 100644 --- a/ext/zlib/tests/compress_zlib_wrapper.phpt +++ b/ext/zlib/tests/compress_zlib_wrapper.phpt @@ -3,8 +3,10 @@ compress.zlib:// wrapper --FILE--