1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00

improve open_basedir handling

This commit is contained in:
Stanislav Malyshev
2011-09-06 19:51:35 +00:00
parent eea14c09fc
commit a226fcc15e
@@ -3,11 +3,6 @@ LOAD DATA INFILE - open_basedir
--SKIPIF--
<?php
@include_once("connect.inc");
if (!isset($db)) {
die("skip open_basedir setting prevents inclusing of required files");
}
include_once('skipif.inc');
include_once('skipifconnectfailure.inc');
@@ -31,12 +26,11 @@ if ($socket == "" && $host != NULL && $host != 'localhost' && $host != '.') {
}
}
?>
--INI--
open_basedir="."
--FILE--
<?php
@include_once("connect.inc");
ini_set("open_basedir", __DIR__);
chdir(__DIR__);
if (!isset($db)) {
// run-tests, I love you for not allowing me to set ini settings dynamically
print "[006] [1148] The used command is not allowed with this MySQL version