1--TEST--
2Test compress.zlib:// scheme with the unlink function
3--SKIPIF--
4<?php
5if (!extension_loaded("zlib")) {
6	print "skip - ZLIB extension not loaded";
7}
8?>
9--FILE--
10<?php
11$inputFileName = dirname(__FILE__)."/004.txt.gz";
12$srcFile = "compress.zlib://$inputFileName";
13echo "file_exists=";
14var_dump(file_exists($srcFile));
15echo "is_file=";
16var_dump(is_file($srcFile));
17echo "is_dir=";
18var_dump(is_dir($srcFile));
19echo "is_readable=";
20var_dump(is_readable($srcFile));
21echo "\n";
22echo "filesize=";
23var_dump(filesize($srcFile));
24echo "filetype=";
25var_dump(filetype($srcFile));
26echo "fileatime=";
27var_dump(fileatime($srcFile));
28
29?>
30===DONE===
31--EXPECTF--
32file_exists=bool(false)
33is_file=bool(false)
34is_dir=bool(false)
35is_readable=bool(false)
36
37filesize=
38Warning: filesize(): stat failed for compress.zlib://%s004.txt.gz in %s on line %d
39bool(false)
40filetype=
41Warning: filetype(): Lstat failed for compress.zlib://%s004.txt.gz in %s on line %d
42bool(false)
43fileatime=
44Warning: fileatime(): stat failed for compress.zlib://%s004.txt.gz in %s on line %d
45bool(false)
46===DONE===