mirror of
https://github.com/php/php-src.git
synced 2026-03-27 09:42:22 +01: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
26 lines
528 B
PHP
26 lines
528 B
PHP
--TEST--
|
|
openbase_dir runtime tightning
|
|
--SKIPIF--
|
|
<?php
|
|
if(PHP_OS_FAMILY === "Windows") {
|
|
die('skip.. only for unix');
|
|
}
|
|
if (!is_dir("/usr/local/bin")) {
|
|
die('skip.. no /usr/local/bin on this machine');
|
|
}
|
|
--INI--
|
|
open_basedir=/usr/local
|
|
--FILE--
|
|
<?php
|
|
var_dump(ini_set("open_basedir", "/usr/local/bin"));
|
|
var_dump(ini_get("open_basedir"));
|
|
var_dump(ini_set("open_basedir", "/usr"));
|
|
var_dump(ini_get("open_basedir"));
|
|
?>
|
|
--EXPECT--
|
|
string(10) "/usr/local"
|
|
string(14) "/usr/local/bin"
|
|
bool(false)
|
|
string(14) "/usr/local/bin"
|
|
|