summaryrefslogtreecommitdiff
path: root/ext/session/tests/sessionhandler_open_001.phpt
blob: e6e913a6a5735db97e66743b119e80c5df432561 (plain)
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
--TEST--
Testing repated SessionHandler::open() calls
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php  

ini_set('session.save_handler', 'files');
$x = new SessionHandler;
$x->open('','');
$x->open('','');
$x->open('','');
$x->open('','');

print "Done!\n";

?>
--EXPECTF--
Warning: SessionHandler::open(): Session is not active in %s on line 5

Warning: SessionHandler::open(): Session is not active in %s on line 6

Warning: SessionHandler::open(): Session is not active in %s on line 7

Warning: SessionHandler::open(): Session is not active in %s on line 8
Done!