summaryrefslogtreecommitdiff
path: root/ext/zlib/tests/zlib_scheme_unlink_basic.phpt
blob: 3aa25f9ddab55283312b7cd7f370a2feb39692ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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";
unlink($srcFile);
var_dump(file_exists($inputFileName));
?>
===DONE===
--EXPECTF--

Warning: unlink(): ZLIB does not allow unlinking in %s on line %d
bool(true)
===DONE===