xref: /PHP-7.3/ext/session/tests/bug55688.phpt (revision 87a671bb)
1--TEST--
2Bug #55688 (Crash when calling SessionHandler::gc())
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--INI--
6html_errors=0
7session.save_handler=files
8--FILE--
9<?php
10ini_set('session.save_handler', 'files');
11$x = new SessionHandler;
12$x->gc(1);
13?>
14--EXPECTF--
15Warning: SessionHandler::gc(): Session is not active in %s on line %d
16