xref: /PHP-5.6/ext/session/tests/016.phpt (revision fc31d6fe)
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_write_close(): Failed to create session data file path. Too short session ID, invalid save_path or path lentgth exceeds MAXPATHLEN(%d) in %s on line 6
28
29Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (123;:/really%scompletely:::/invalid;;,23123;213) in %s on line 6
30I live
31