1
0
mirror of https://github.com/php/php-src.git synced 2026-04-04 22:52:40 +02:00
Files
archived-php-src/ext/session/tests/bug55688.phpt
2021-06-11 16:27:50 +02:00

23 lines
390 B
PHP

--TEST--
Bug #55688 (Crash when calling SessionHandler::gc())
--EXTENSIONS--
session
--SKIPIF--
<?php include('skipif.inc'); ?>
--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