1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
George Peter Banyard 386892f1fe Restructure ext-session tests
And small improvements to some
2022-10-22 12:47:34 +01:00

21 lines
347 B
PHP

--TEST--
Bug #55688 (Crash when calling SessionHandler::gc())
--EXTENSIONS--
session
--INI--
html_errors=0
session.save_handler=files
--FILE--
<?php
ini_set('session.save_handler', 'files');
$x = new SessionHandler;
try {
$x->gc(1);
} catch (Error $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
Session is not active