xref: /PHP-8.2/ext/session/tests/gh13856.phpt (revision d7aa0be3)
1--TEST--
2GH-13856 (Member access within null pointer of type 'ps_files' in ext/session/mod_files.c)
3--EXTENSIONS--
4session
5--INI--
6session.save_handler=files
7open_basedir=.
8error_reporting=E_ALL
9session.save_path=
10--FILE--
11<?php
12session_set_save_handler(new \SessionHandler(), true);
13session_start();
14?>
15--EXPECTF--
16Warning: SessionHandler::open(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (.) in %s on line %d
17
18Warning: SessionHandler::close(): Parent session handler is not open in %s on line %d
19
20Warning: session_start(): Failed to initialize storage module: user (path: ) in %s on line %d
21