mirror of
https://github.com/php/php-src.git
synced 2026-03-29 03:32:20 +02:00
46 lines
734 B
PHP
46 lines
734 B
PHP
--TEST--
|
|
Testing repated SessionHandler::open() calls
|
|
--EXTENSIONS--
|
|
session
|
|
--SKIPIF--
|
|
<?php include('skipif.inc'); ?>
|
|
--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!
|