diff options
| -rw-r--r-- | tests/basic/req60524-win.phpt | 13 | ||||
| -rw-r--r-- | tests/basic/req60524.phpt | 6 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/basic/req60524-win.phpt b/tests/basic/req60524-win.phpt new file mode 100644 index 0000000000..b2e7cfdab4 --- /dev/null +++ b/tests/basic/req60524-win.phpt @@ -0,0 +1,13 @@ +--TEST-- +Req #60524 (Specify temporary directory) +--INI-- +sys_temp_dir=C:\Windows +--SKIPIF-- +<?php +if( substr(PHP_OS, 0, 3) != "WIN" ) + die('skip Run only on Windows'); +?> +--FILE-- +<?php echo sys_get_temp_dir(); ?> +--EXPECT-- +C:\\Windows diff --git a/tests/basic/req60524.phpt b/tests/basic/req60524.phpt index 6803e1fd88..7cc3edfabf 100644 --- a/tests/basic/req60524.phpt +++ b/tests/basic/req60524.phpt @@ -2,6 +2,12 @@ Req #60524 (Specify temporary directory) --INI-- sys_temp_dir=/path/to/temp/dir +--SKIPIF-- +<?php +if (substr(PHP_OS, 0, 3) == 'WIN') { + die('skip non-windows only test'); +} +?> --FILE-- <?php echo sys_get_temp_dir(); ?> --EXPECT-- |
