PHP  
 PHP_7_0
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Expected Test Failure Report for ext/session/tests/bug69111.phpt ('Bug #69111 Crash in SessionHandler::read()')

Script

1: <?php
2: $sh 
= new SessionHandler;
3:
session_set_save_handler($sh);
4:
5:
$savePath ini_get('session.save_path');
6:
$sessionName ini_get('session.name');
7:
8:
// session_start(); // Uncommenting this makes it not crash when reading the session (see below), but it will not return any data. 
9:
10:
$sh->open($savePath$sessionName);
11:
$sh->write("foo""bar");
12:
var_dump($sh->read(@$id));
13:
?>
14:

Expected

bool(false)

Output

Warning: SessionHandler::read(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /var/php_gcov/PHP_7_0/ext/session/tests/bug69111.php on line 12
bool(false)

Diff

001+ Warning: SessionHandler::read(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /var/php_gcov/PHP_7_0/ext/session/tests/bug69111.php on line 12

 

Generated at Wed, 08 Nov 2017 19:36:35 +0000 (8 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.