Skip to content

Commit 7f85c6a

Browse files
committed
avoids checking session path if running on cli
1 parent fd54341 commit 7f85c6a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib.inc.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@
2626
&& !headers_sent()
2727
&& !ini_get('session.auto_start');
2828

29-
if ($shouldSetSession) {
30-
if (!is_writable(session_save_path())) {
31-
die('Session path "' . session_save_path() . '" is not writable for PHP!');
32-
}
29+
if ($shouldSetSession && PHP_SAPI !== 'cli') {
3330
session_set_cookie_params(0, '/', null, isset($_SERVER['HTTPS']));
3431
session_name('PPA_ID');
3532
session_start();

0 commit comments

Comments
 (0)