xref: /PHP-8.3/ext/session/tests/skipif.inc (revision b5a14e6c)
1<?php
2$save_path = ini_get("session.save_path");
3if ($save_path) {
4    if (!file_exists($save_path)) {
5        die("skip Session save_path doesn't exist");
6    }
7
8    if ($save_path && !@is_writable($save_path)) {
9        if (($p = strpos($save_path, ';')) !== false) {
10            $save_path = substr($save_path, ++$p);
11        }
12        if (!@is_writable($save_path)) {
13            die("skip session.save_path $save_path is not writable\n");
14        }
15    }
16}
17?>
18