123456789101112131415161718192021222324252627282930313233 |
- --TEST--
- Test function gzclose() by calling it more than or less than its expected arguments
- --SKIPIF--
- <?php
- if (!extension_loaded("zlib")) {
- print "skip - ZLIB extension not loaded";
- }
- ?>
- --FILE--
- <?php
- $f = dirname(__FILE__)."/004.txt.gz";
- $h = gzopen($f, 'r');
- $extra_arg = 'nothing';
- var_dump(gzclose( $h, $extra_arg ) );
- var_dump(gzclose());
- gzclose($h);
- ?>
- ===DONE===
- --EXPECTF--
- Warning: gzclose() expects exactly 1 parameter, 2 given in %s on line %d
- bool(false)
- Warning: gzclose() expects exactly 1 parameter, 0 given in %s on line %d
- bool(false)
- ===DONE===
|