summaryrefslogtreecommitdiff
path: root/ext/session/tests/sessionhandler_open_001.phpt
blob: 2b8c3a49fba3a555a29fa41ec0e6c8a3cc9f5e34 (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!