mirror of
https://github.com/php/php-src.git
synced 2026-03-27 01:32:22 +01:00
MFH: Skip session tests if session.save_path is not writable.
This commit is contained in:
@@ -7,4 +7,13 @@ if (!extension_loaded("session") && ini_get("enable_dl")) {
|
||||
if (!extension_loaded("session")) {
|
||||
die("skip\n");
|
||||
}
|
||||
$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");
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user