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