mirror of
https://github.com/php/php-src.git
synced 2026-04-22 07:28:09 +02:00
Merge branch 'PHP-5.5'
* PHP-5.5: Adding sys_get_temp_dir() test specific for Windows.
This commit is contained in:
@@ -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
|
||||
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user