mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
36 lines
764 B
PHP
36 lines
764 B
PHP
--TEST--
|
|
Test function gzfile() by substituting argument 1 with int values.
|
|
--EXTENSIONS--
|
|
zlib
|
|
--FILE--
|
|
<?php
|
|
|
|
|
|
$use_include_path = false;
|
|
|
|
|
|
$variation = array (
|
|
'int 0' => 0,
|
|
'int 1' => 1,
|
|
'int 12345' => 12345,
|
|
'int -12345' => -2345,
|
|
);
|
|
|
|
|
|
foreach ( $variation as $var ) {
|
|
var_dump(gzfile( $var , $use_include_path ) );
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Warning: gzfile(0): Failed to open stream: No such file or directory in %s on line %d
|
|
bool(false)
|
|
|
|
Warning: gzfile(1): Failed to open stream: No such file or directory in %s on line %d
|
|
bool(false)
|
|
|
|
Warning: gzfile(12345): Failed to open stream: No such file or directory in %s on line %d
|
|
bool(false)
|
|
|
|
Warning: gzfile(-2345): Failed to open stream: No such file or directory in %s on line %d
|
|
bool(false)
|