mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Skip session tests if session.save_path is not writable.
This commit is contained in:
parent
6571a32c87
commit
f7f966f96f
1 changed files with 9 additions and 0 deletions
|
@ -10,4 +10,13 @@ if (!extension_loaded("session")) {
|
||||||
if (!file_exists(ini_get("session.save_path"))) {
|
if (!file_exists(ini_get("session.save_path"))) {
|
||||||
die("skip Session save_path doesn't exist");
|
die("skip Session save_path doesn't exist");
|
||||||
}
|
}
|
||||||
|
$save_path = ini_get("session.save_path");
|
||||||
|
if (!@is_writable($save_path)) {
|
||||||
|
if (($p = strpos($save_path, ';')) !== false) {
|
||||||
|
$save_path = substr($save_path, ++$p);
|
||||||
|
}
|
||||||
|
if (!@is_writable($save_path)) {
|
||||||
|
die("skip\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue