summaryrefslogtreecommitdiff
path: root/ext/zlib/tests/zlib_wrapper_fstat_basic.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zlib/tests/zlib_wrapper_fstat_basic.phpt')
-rw-r--r--ext/zlib/tests/zlib_wrapper_fstat_basic.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/zlib/tests/zlib_wrapper_fstat_basic.phpt b/ext/zlib/tests/zlib_wrapper_fstat_basic.phpt
new file mode 100644
index 0000000..41f957e
--- /dev/null
+++ b/ext/zlib/tests/zlib_wrapper_fstat_basic.phpt
@@ -0,0 +1,19 @@
+--TEST--
+Test function fstat() on zlib wrapper
+--SKIPIF--
+<?php
+if (!extension_loaded("zlib")) {
+ print "skip - ZLIB extension not loaded";
+}
+?>
+--FILE--
+<?php
+$f = dirname(__FILE__)."/004.txt.gz";
+$h = gzopen($f, "r");
+var_dump(fstat($h));
+fclose($h);
+?>
+===DONE===
+--EXPECT--
+bool(false)
+===DONE=== \ No newline at end of file