Adding sys_get_temp_dir() test specific for Windows.

sys_get_temp_dir() returns a Windows-style path (\\ instead of /) on
Windows. This is why a Windows specific test is required.

Skipping req60524.phpt on Windows. Adding -win32 fork for use only on
Windows.

Fixes test bug #64396.
This commit is contained in:
Matt Ficken 2013-04-25 14:52:48 -07:00
parent 30802dbc55
commit 4941e3fe44
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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--