xref: /PHP-5.6/ext/session/tests/bug69111.phpt (revision b7dadfae)
1--TEST--
2Bug #69111 Crash in SessionHandler::read()
3--XFAIL--
4It is still a leak
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--FILE--
8<?php
9$sh = new SessionHandler;
10session_set_save_handler($sh);
11
12$savePath = ini_get('session.save_path');
13$sessionName = ini_get('session.name');
14
15// session_start(); // Uncommenting this makes it not crash when reading the session (see below), but it will not return any data.
16
17$sh->open($savePath, $sessionName);
18$sh->write("foo", "bar");
19var_dump($sh->read(@$id));
20?>
21--EXPECTF--
22bool(false)
23