xref: /PHP-8.1/ext/session/tests/bug55688.phpt (revision b5a14e6c)
1--TEST--
2Bug #55688 (Crash when calling SessionHandler::gc())
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--INI--
8html_errors=0
9session.save_handler=files
10--FILE--
11<?php
12ini_set('session.save_handler', 'files');
13$x = new SessionHandler;
14
15try {
16    $x->gc(1);
17} catch (Error $exception) {
18    echo $exception->getMessage() . "\n";
19}
20?>
21--EXPECT--
22Session is not active
23