18f9ec423SDave Kelsey--TEST--
204145dc2SVeres LajosTest function readgzfile() by substituting argument 1 with int values.
38f9ec423SDave Kelsey--SKIPIF--
48f9ec423SDave Kelsey<?php
58f9ec423SDave Kelseyif (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
68f9ec423SDave Kelsey?>
78f9ec423SDave Kelsey--FILE--
88f9ec423SDave Kelsey<?php
98f9ec423SDave Kelsey
108f9ec423SDave Kelsey
118f9ec423SDave Kelsey$use_include_path = false;
128f9ec423SDave Kelsey
138f9ec423SDave Kelsey
148f9ec423SDave Kelsey$variation = array (
158f9ec423SDave Kelsey    'int 0' => 0,
168f9ec423SDave Kelsey    'int 1' => 1,
178f9ec423SDave Kelsey    'int 12345' => 12345,
188f9ec423SDave Kelsey    'int -12345' => -2345,
198f9ec423SDave Kelsey    );
208f9ec423SDave Kelsey
218f9ec423SDave Kelsey
228f9ec423SDave Kelseyforeach ( $variation as $var ) {
238f9ec423SDave Kelsey  var_dump(readgzfile( $var ,  $use_include_path ) );
248f9ec423SDave Kelsey}
258f9ec423SDave Kelsey?>
268f9ec423SDave Kelsey===DONE===
278f9ec423SDave Kelsey--EXPECTF--
2806f072cbSJani TaskinenWarning: readgzfile(0): failed to open stream: No such file or directory in %s on line %d
298f9ec423SDave Kelseybool(false)
3006f072cbSJani Taskinen
3106f072cbSJani TaskinenWarning: readgzfile(1): failed to open stream: No such file or directory in %s on line %d
328f9ec423SDave Kelseybool(false)
3306f072cbSJani Taskinen
3406f072cbSJani TaskinenWarning: readgzfile(12345): failed to open stream: No such file or directory in %s on line %d
358f9ec423SDave Kelseybool(false)
3606f072cbSJani Taskinen
3706f072cbSJani TaskinenWarning: readgzfile(-2345): failed to open stream: No such file or directory in %s on line %d
388f9ec423SDave Kelseybool(false)
3906f072cbSJani Taskinen===DONE===
40