Test fnmatch() function: Basic functionality
--SKIPIF--
<?php
-if (substr(PHP_OS, 0, 3) == 'WIN') {
- die('skip no fnmatch() on Windows');
-}
+if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) )
+ die("skip do not run on MacOS/Windows");
+?>
--FILE--
<?php
/* Prototype: bool fnmatch ( string $pattern, string $string [, int $flags] )
Test fnmatch() function: Error conditions
--SKIPIF--
<?php
-if (substr(PHP_OS, 0, 3) == 'WIN') {
- die('skip no fnmatch() on Windows');
-}
+if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) )
+ die("skip do not run on MacOS/Windows");
+?>
--FILE--
<?php
/* Prototype: bool fnmatch ( string $pattern, string $string [, int $flags] )
Test fnmatch() function: Variations
--SKIPIF--
<?php
-if (substr(PHP_OS, 0, 3) == 'WIN') {
- die('skip no fnmatch() on Windows');
-}
+if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) )
+ die("skip do not run on MacOS/Windows");
+?>
--FILE--
<?php
/* Prototype: bool fnmatch ( string $pattern, string $string [, int $flags] )