1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00
Files
archived-php-src/ext/session/tests/bug67972.phpt
T
Máté Kocsis 29642623fd Promote "Session is not active" warning to exception
In normal circumstances, the session handler methods are not invoked when the session is not active.

Closes GH-7006
2021-05-27 23:26:15 +02:00

17 lines
284 B
PHP

--TEST--
Bug #67972: SessionHandler Invalid memory read create_sid()
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
try {
(new SessionHandler)->create_sid();
} catch (Error $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
Session is not active