mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
462da6e09c
This PR corrects misspellings identified by the check-spelling action. The misspellings have been reported at jsoref@b6ba3e2#commitcomment-48946465 The action reports that the changes in this PR would make it happy: jsoref@602417c Closes GH-6822.
25 lines
533 B
PHP
25 lines
533 B
PHP
--TEST--
|
|
openbase_dir runtime hardening
|
|
--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"
|