1
0
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:
Ilia Alshanetsky
2004-05-13 12:53:49 +00:00
parent e69edbeac2
commit 6be3e2d751

View File

@@ -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");
}
}
?>