summaryrefslogtreecommitdiff
path: root/ext/zlib/tests/bug61139.phpt
blob: ab7c74e9ccf7c22b4b46511f41f11e8c2ecebbbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #61139 (gzopen leaks when specifying invalid mode)
--SKIPIF--
<?php
if (!extension_loaded('zlib')) {
	die('skip - zlib extension not loaded');
}
?>
--FILE--
<?php

gzopen('someFile', 'c');
--CLEAN--
<?php
	unlink('someFile');
?>
--EXPECTF--
Warning: gzopen(): gzopen failed in %s on line %d