xref: /PHP-8.1/ext/session/tests/016.phpt (revision 74859783)
1--TEST--
2invalid session.save_path should not cause a segfault
3--EXTENSIONS--
4session
5--INI--
6session.save_path="123;:/really\\completely:::/invalid;;,23123;213"
7session.use_cookies=0
8session.cache_limiter=
9session.save_handler=files
10session.serialize_handler=php
11--FILE--
12<?php
13error_reporting(E_ALL);
14
15session_start();
16$HTTP_SESSION_VARS["test"] = 1;
17session_write_close();
18print "I live\n";
19?>
20--EXPECTF--
21Warning: session_start(): Failed to create session data file path. Too short session ID, invalid save_path or path length exceeds %d characters in %s on line %d
22
23Warning: session_start(): Failed to read session data: files (path: 123;:/really%scompletely:::/invalid;;,23123;213) in %s on line 4
24I live
25