diff options
| author | Stricted <info@stricted.net> | 2017-01-25 08:34:24 +0100 |
|---|---|---|
| committer | Joe Watkins <krakjoe@php.net> | 2017-01-25 20:50:14 +0000 |
| commit | bb059fe0a78af864ce62a658adcd22c931de127e (patch) | |
| tree | 3d6603b5041dd9256e771589bcd7fe60cf669322 /tests/basic | |
| parent | 4a72d340a334be11aa529c4a24c8f5b2d531f364 (diff) | |
| download | php-git-bb059fe0a78af864ce62a658adcd22c931de127e.tar.gz | |
add PHP_OS_FAMILY constant to determine on which os we are
Diffstat (limited to 'tests/basic')
| -rw-r--r-- | tests/basic/req60524-win.phpt | 2 | ||||
| -rw-r--r-- | tests/basic/req60524.phpt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/basic/req60524-win.phpt b/tests/basic/req60524-win.phpt index b2e7cfdab4..8eb38a528c 100644 --- a/tests/basic/req60524-win.phpt +++ b/tests/basic/req60524-win.phpt @@ -4,7 +4,7 @@ Req #60524 (Specify temporary directory) sys_temp_dir=C:\Windows --SKIPIF-- <?php -if( substr(PHP_OS, 0, 3) != "WIN" ) +if(PHP_OS_FAMILY !== "WIN") die('skip Run only on Windows'); ?> --FILE-- diff --git a/tests/basic/req60524.phpt b/tests/basic/req60524.phpt index 7cc3edfabf..e4999e1a20 100644 --- a/tests/basic/req60524.phpt +++ b/tests/basic/req60524.phpt @@ -4,7 +4,7 @@ Req #60524 (Specify temporary directory) sys_temp_dir=/path/to/temp/dir --SKIPIF-- <?php -if (substr(PHP_OS, 0, 3) == 'WIN') { +if(PHP_OS_FAMILY === "WIN") { die('skip non-windows only test'); } ?> |
