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