moriyoshi               Fri Oct 31 11:12:28 2003 EDT

  Modified files:              
    /php-src/ext/dom/tests      dom004.phpt dom_xinclude.phpt 
  Log:
  SKIP tests if compress.zlib wrapper is not available.
  
  
Index: php-src/ext/dom/tests/dom004.phpt
diff -u php-src/ext/dom/tests/dom004.phpt:1.1 php-src/ext/dom/tests/dom004.phpt:1.2
--- php-src/ext/dom/tests/dom004.phpt:1.1       Mon Oct 27 10:13:12 2003
+++ php-src/ext/dom/tests/dom004.phpt   Fri Oct 31 11:12:27 2003
@@ -1,7 +1,10 @@
 --TEST--
 Test 4: Streams Test
 --SKIPIF--
-<?php  require_once('skipif.inc'); ?>
+<?php
+require_once('skipif.inc');
+array_search('compress.zlib', stream_get_wrappers()) || die('skip compress.zlib 
wrapper is not available');
+?>
 --FILE--
 <?php
 $dom = new domdocument;
Index: php-src/ext/dom/tests/dom_xinclude.phpt
diff -u php-src/ext/dom/tests/dom_xinclude.phpt:1.1 
php-src/ext/dom/tests/dom_xinclude.phpt:1.2
--- php-src/ext/dom/tests/dom_xinclude.phpt:1.1 Mon Oct 27 10:32:44 2003
+++ php-src/ext/dom/tests/dom_xinclude.phpt     Fri Oct 31 11:12:27 2003
@@ -1,7 +1,10 @@
 --TEST--
 Test: Xinclude and Streams
 --SKIPIF--
-<?php  require_once('skipif.inc'); ?>
+<?php
+require_once('skipif.inc');
+array_search('compress.zlib', stream_get_wrappers()) || die('skip compress.zlib 
wrapper is not available');
+?>
 --FILE--
 <?php
 $dom = new domdocument;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to