mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
17 lines
465 B
PHP
17 lines
465 B
PHP
<?php
|
|
$save_path = ini_get("session.save_path");
|
|
if ($save_path) {
|
|
if (!file_exists($save_path)) {
|
|
die("skip Session save_path doesn't exist");
|
|
}
|
|
|
|
if ($save_path && !@is_writable($save_path)) {
|
|
if (($p = strpos($save_path, ';')) !== false) {
|
|
$save_path = substr($save_path, ++$p);
|
|
}
|
|
if (!@is_writable($save_path)) {
|
|
die("skip session.save_path $save_path is not writable\n");
|
|
}
|
|
}
|
|
}
|
|
?>
|