--TEST--
Test fnmatch() function: Basic functionality
--SKIPIF--
<?php
if (!function_exists('fnmatch'))
    die(
"skip fnmatch() function is not available");
?>
--FILE--
<?php
/* Prototype: bool fnmatch ( string $pattern, string $string [, int $flags] )
   Description: fnmatch() checks if the passed string would match
     the given shell wildcard pattern.
*/

echo "*** Testing fnmatch() with file ***\n";
$file basename(__FILE__);

var_dumpfnmatch("*.php"$file) );
var_dumpfnmatch("*.p*p"$file) );
var_dumpfnmatch("*.p*"$file) );
var_dumpfnmatch("*"$file) );
var_dumpfnmatch("**"$file) );
var_dumpfnmatch("*.phpt"$file) );

echo 
"*** Testing fnmatch() with other than file ***\n";
var_dumpfnmatch(100100) );
var_dumpfnmatch("string""string") );
var_dumpfnmatch(TRUETRUE) );
var_dumpfnmatch(FALSEFALSE) );
var_dumpfnmatch(NULLNULL) );

echo 
"\n*** Done ***\n";
?>
--EXPECT--
*** Testing fnmatch() with file ***
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(false)
*** Testing fnmatch() with other than file ***
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)

*** Done ***