diff options
-rw-r--r-- | ext/standard/tests/file/copy_variation15.phpt | 4 | ||||
-rw-r--r-- | ext/standard/tests/file/copy_variation9.phpt | 4 | ||||
-rw-r--r-- | ext/standard/tests/file/fnmatch_basic.phpt | 4 | ||||
-rw-r--r-- | ext/standard/tests/file/fnmatch_error.phpt | 4 | ||||
-rw-r--r-- | ext/standard/tests/file/fnmatch_variation.phpt | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/ext/standard/tests/file/copy_variation15.phpt b/ext/standard/tests/file/copy_variation15.phpt index a6404fcd8d..fbf5e7bf9e 100644 --- a/ext/standard/tests/file/copy_variation15.phpt +++ b/ext/standard/tests/file/copy_variation15.phpt @@ -2,8 +2,8 @@ Test copy() function: usage variations - destination dir access perms --SKIPIF-- <?php -if( (stristr(PHP_OS, "Darwin")) || (stristr(PHP_OS, "Win")) ) - die("skip do not run on MacOS/Windows"); +if(substr(PHP_OS, 0, 3) == 'WIN') + die("skip do not run on Windows"); // Skip if being run by root (files are always readable, writeable and executable) $filename = dirname(__FILE__)."/copy_variation15_root_check.tmp"; $fp = fopen($filename, 'w'); diff --git a/ext/standard/tests/file/copy_variation9.phpt b/ext/standard/tests/file/copy_variation9.phpt index d5a0587de4..824bed0c76 100644 --- a/ext/standard/tests/file/copy_variation9.phpt +++ b/ext/standard/tests/file/copy_variation9.phpt @@ -2,8 +2,8 @@ Test copy() function: usage variations - destination file access perms --SKIPIF-- <?php -if( (stristr(PHP_OS, "Darwin")) || (stristr(PHP_OS, "Win")) ) - die("skip do not run on MacOS/Windows"); +if(substr(PHP_OS, 0, 3) == 'WIN') + die("skip do not run on Windows"); // Skip if being run by root (files are always readable, writeable and executable) $filename = dirname(__FILE__)."/copy_variation9_root_check.tmp"; diff --git a/ext/standard/tests/file/fnmatch_basic.phpt b/ext/standard/tests/file/fnmatch_basic.phpt index 322362e8bf..f2a2dfe046 100644 --- a/ext/standard/tests/file/fnmatch_basic.phpt +++ b/ext/standard/tests/file/fnmatch_basic.phpt @@ -2,8 +2,8 @@ Test fnmatch() function: Basic functionality --SKIPIF-- <?php -if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) ) - die("skip do not run on MacOS/Windows"); +if(substr(PHP_OS, 0, 3) == 'WIN') + die("skip do not run on Windows"); ?> --FILE-- <?php diff --git a/ext/standard/tests/file/fnmatch_error.phpt b/ext/standard/tests/file/fnmatch_error.phpt index 9876133169..58f59df7a0 100644 --- a/ext/standard/tests/file/fnmatch_error.phpt +++ b/ext/standard/tests/file/fnmatch_error.phpt @@ -2,8 +2,8 @@ Test fnmatch() function: Error conditions --SKIPIF-- <?php -if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) ) - die("skip do not run on MacOS/Windows"); +if(substr(PHP_OS, 0, 3) == 'WIN') + die("skip do not run on Windows"); ?> --FILE-- <?php diff --git a/ext/standard/tests/file/fnmatch_variation.phpt b/ext/standard/tests/file/fnmatch_variation.phpt index c2d9932dd3..69f9dcf965 100644 --- a/ext/standard/tests/file/fnmatch_variation.phpt +++ b/ext/standard/tests/file/fnmatch_variation.phpt @@ -2,8 +2,8 @@ Test fnmatch() function: Variations --SKIPIF-- <?php -if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) ) - die("skip do not run on MacOS/Windows"); +if(substr(PHP_OS, 0, 3) == 'WIN') + die("skip do not run on Windows"); ?> --FILE-- <?php |