12345678910111213141516171819202122 |
- --TEST--
- Bug #69111 Crash in SessionHandler::read()
- --XFAIL--
- It is still a leak
- --SKIPIF--
- <?php include('skipif.inc'); ?>
- --FILE--
- <?php
- $sh = new SessionHandler;
- session_set_save_handler($sh);
- $savePath = ini_get('session.save_path');
- $sessionName = ini_get('session.name');
- // session_start(); // Uncommenting this makes it not crash when reading the session (see below), but it will not return any data.
- $sh->open($savePath, $sessionName);
- $sh->write("foo", "bar");
- var_dump($sh->read(@$id));
- ?>
- --EXPECTF--
- bool(false)
|