mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +02:00

* PHP_OS_FAMILY is now a macro, to allow extensions to take advantage of it, it is defined in php.h * Values are not upper-case-first, not always uppercase. Windows is no longer just "Win", if we want the short version for testing then PHP_OS is always WINNT anyway
14 lines
256 B
PHP
14 lines
256 B
PHP
--TEST--
|
|
Req #60524 (Specify temporary directory)
|
|
--INI--
|
|
sys_temp_dir=/path/to/temp/dir
|
|
--SKIPIF--
|
|
<?php
|
|
if(PHP_OS_FAMILY === "Windows") {
|
|
die('skip non-windows only test');
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php echo sys_get_temp_dir(); ?>
|
|
--EXPECT--
|
|
/path/to/temp/dir
|