xref: /PHP-7.1/ext/zlib/tests/bug61139.phpt (revision 7af945e2)
1--TEST--
2Bug #61139 (gzopen leaks when specifying invalid mode)
3--SKIPIF--
4<?php
5if (!extension_loaded('zlib')) {
6	die('skip - zlib extension not loaded');
7}
8?>
9--FILE--
10<?php
11
12gzopen('someFile', 'c');
13--CLEAN--
14<?php
15	unlink('someFile');
16?>
17--EXPECTF--
18Warning: gzopen(): gzopen failed in %s on line %d
19