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

44 lines
691 B
PHP

--TEST--
Testing repated SessionHandler::open() calls
--EXTENSIONS--
session
--FILE--
<?php
ini_set('session.save_handler', 'files');
$x = new SessionHandler;
try {
$x->open('','');
} catch (Error $exception) {
echo $exception->getMessage() . "\n";
}
try {
$x->open('','');
} catch (Error $exception) {
echo $exception->getMessage() . "\n";
}
try {
$x->open('','');
} catch (Error $exception) {
echo $exception->getMessage() . "\n";
}
try {
$x->open('','');
} catch (Error $exception) {
echo $exception->getMessage() . "\n";
}
print "Done!\n";
?>
--EXPECT--
Session is not active
Session is not active
Session is not active
Session is not active
Done!