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 = __DIR__."/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--EXPECTF--
31file_exists=bool(false)
32is_file=bool(false)
33is_dir=bool(false)
34is_readable=bool(false)
35
36filesize=
37Warning: filesize(): stat failed for compress.zlib://%s004.txt.gz in %s on line %d
38bool(false)
39filetype=
40Warning: filetype(): Lstat failed for compress.zlib://%s004.txt.gz in %s on line %d
41bool(false)
42fileatime=
43Warning: fileatime(): stat failed for compress.zlib://%s004.txt.gz in %s on line %d
44bool(false)
45