summaryrefslogtreecommitdiff
path: root/ext/zlib/tests/zlib_scheme_unlink_basic.phpt
blob: c5c4eabb466ef5e7e166dbd893f9e6b5a741a93b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Test compress.zlib:// scheme with the unlink function
--SKIPIF--
<?php
if (!extension_loaded("zlib")) {
    print "skip - ZLIB extension not loaded";
}
?>
--FILE--
<?php
$inputFileName = __DIR__."/004.txt.gz";
$srcFile = "compress.zlib://$inputFileName";
unlink($srcFile);
var_dump(file_exists($inputFileName));
?>
--EXPECTF--
Warning: unlink(): ZLIB does not allow unlinking in %s on line %d
bool(true)