mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
40 lines
828 B
PHP
40 lines
828 B
PHP
--TEST--
|
|
Test function gzfile() by substituting agument 1 with boolean values.
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
|
|
$use_include_path =
|
|
|
|
|
|
$variation = array(
|
|
'lowercase true' => true,
|
|
'lowercase false' =>false,
|
|
'uppercase TRUE' =>TRUE,
|
|
'uppercase FALSE' =>FALSE,
|
|
);
|
|
|
|
|
|
foreach ( $variation as $var ) {
|
|
var_dump(gzfile( $var , $use_include_path ) );
|
|
}
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
|
|
Warning: gzfile() expects parameter 2 to be long, array given in %s on line %d
|
|
NULL
|
|
|
|
Warning: gzfile() expects parameter 2 to be long, array given in %s on line %d
|
|
NULL
|
|
|
|
Warning: gzfile() expects parameter 2 to be long, array given in %s on line %d
|
|
NULL
|
|
|
|
Warning: gzfile() expects parameter 2 to be long, array given in %s on line %d
|
|
NULL
|
|
===DONE===
|