summaryrefslogtreecommitdiff
path: root/ext/zlib/tests/zlib_scheme_fopen_variation1.phpt
diff options
context:
space:
mode:
authorDave Kelsey <dkelsey@php.net>2009-01-22 14:14:54 (GMT)
committerDave Kelsey <dkelsey@php.net>2009-01-22 14:14:54 (GMT)
commita7de3bcb64830a2199483fe978fd749f90efc9c6 (patch)
tree097c8ec0381056ef18017e3202d029897a138d4b /ext/zlib/tests/zlib_scheme_fopen_variation1.phpt
parentf0c173aa35c73f425f02b8dfc5a4a8d9fa43259b (diff)
downloadphp-a7de3bcb64830a2199483fe978fd749f90efc9c6.tar.gz
final collection of zlib tests. tested on linux, windows and linux 64 bit
Diffstat (limited to 'ext/zlib/tests/zlib_scheme_fopen_variation1.phpt')
-rw-r--r--ext/zlib/tests/zlib_scheme_fopen_variation1.phpt30
1 files changed, 30 insertions, 0 deletions
diff --git a/ext/zlib/tests/zlib_scheme_fopen_variation1.phpt b/ext/zlib/tests/zlib_scheme_fopen_variation1.phpt
new file mode 100644
index 0000000..8c26492
--- /dev/null
+++ b/ext/zlib/tests/zlib_scheme_fopen_variation1.phpt
@@ -0,0 +1,30 @@
+--TEST--
+Test compress.zlib:// scheme with the fopen on a file scheme
+--SKIPIF--
+<?php
+if (!extension_loaded("zlib")) {
+ print "skip - ZLIB extension not loaded";
+}
+?>
+--FILE--
+<?php
+$inputFileName = dirname(__FILE__)."/004.txt.gz";
+$srcFile = "file://$inputFileName";
+$compressedFile = "compress.zlib://$srcFile";
+
+echo "file=$compressedFile\n\n";
+$h = fopen($compressedFile, 'r');
+fpassthru($h);
+fclose($h);
+?>
+===DONE===
+--EXPECTF--
+file=compress.zlib://file://%s/004.txt.gz
+
+When you're taught through feelings
+Destiny flying high above
+all I know is that you can realize it
+Destiny who cares
+as it turns around
+and I know that it descends down on me
+===DONE=== \ No newline at end of file