1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
--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!
|