php-src/ext/session/tests/bug55688.phpt
2011-09-14 05:02:50 +00:00

16 lines
345 B
PHP

--TEST--
Bug #55688 (Crash when calling SessionHandler::gc())
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
html_errors=0
session.save_handler=files
--FILE--
<?php
ini_set('session.save_handler', 'files');
$x = new SessionHandler;
$x->gc(1);
?>
--EXPECTF--
Warning: SessionHandler::gc(): Parent session handler is not open in %s on line %d