blob: 646396c04199dc0f71bdb54c765cc62d0b24bd70 (
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
|