2003-10-27 15:13:12 +00:00
|
|
|
--TEST--
|
|
|
|
Test 4: Streams Test
|
|
|
|
--SKIPIF--
|
2003-10-31 16:12:27 +00:00
|
|
|
<?php
|
|
|
|
require_once('skipif.inc');
|
2004-12-02 16:33:36 +00:00
|
|
|
array_search('compress.zlib', stream_get_wrappers()) or die('skip compress.zlib wrapper is not available');
|
2003-10-31 16:12:27 +00:00
|
|
|
?>
|
2003-10-27 15:13:12 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
$dom = new domdocument;
|
|
|
|
$dom->load("compress.zlib://".dirname(__FILE__)."/book.xml.gz");
|
|
|
|
print $dom->saveXML();
|
|
|
|
|
|
|
|
--EXPECT--
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
<books>
|
|
|
|
<book>
|
|
|
|
<title>The Grapes of Wrath</title>
|
|
|
|
<author>John Steinbeck</author>
|
|
|
|
</book>
|
|
|
|
<book>
|
|
|
|
<title>The Pearl</title>
|
|
|
|
<author>John Steinbeck</author>
|
|
|
|
</book>
|
|
|
|
</books>
|