diff options
Diffstat (limited to 'ext/zlib/tests/gzopen_variation5.phpt')
-rw-r--r-- | ext/zlib/tests/gzopen_variation5.phpt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/zlib/tests/gzopen_variation5.phpt b/ext/zlib/tests/gzopen_variation5.phpt index de505f7216..2e764bb0a4 100644 --- a/ext/zlib/tests/gzopen_variation5.phpt +++ b/ext/zlib/tests/gzopen_variation5.phpt @@ -1,17 +1,17 @@ --TEST-- Test gzopen() function : variation: use include path and stream context create a file, relative path --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : resource gzopen(string filename, string mode [, int use_include_path]) * Description: Open a .gz-file and return a .gz-file pointer * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ require_once('gzopen_include_path.inc'); @@ -38,8 +38,8 @@ function runtest() { $h = gzopen($tmpfile, "w", true); fwrite($h, "This is the test file"); fclose($h); - - + + $h = @gzopen($tmpfile, "r"); if ($h === false) { echo "Not created in working dir\n"; @@ -49,7 +49,7 @@ function runtest() { gzclose($h); unlink($tmpfile); } - + $h = @gzopen('dir1/'.$tmpfile, "r"); if ($h === false) { echo "Not created in dir1\n"; @@ -57,7 +57,7 @@ function runtest() { else { echo "created in dir1\n"; gzclose($h); - unlink('dir1/'.$tmpfile); + unlink('dir1/'.$tmpfile); } } ?> |