1
0
mirror of https://github.com/php/php-src.git synced 2026-04-02 05:32:28 +02:00
Files
archived-php-src/ext/session/tests/sessionhandler_open_001.phpt
Yasuo Ohgaki bfb9307b2d Fixed bug #69111 (Crash in SessionHandler::read()).
Made session save handler abuse much harder than before.
2016-01-15 15:50:14 +09:00

27 lines
577 B
PHP

--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!