File size: 652 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
27
28
--TEST--
Bug #68063 (Empty session IDs do still start sessions)
--EXTENSIONS--
session
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
session.use_strict_mode=0
session.sid_length=40
session.sid_bits_per_character=4
--FILE--
<?php
// Empty session ID may happen by browser bugs

// Could also be set with a cookie like "PHPSESSID=; path=/"
session_id('');

// Start the session with empty string should result in new session ID
var_dump(session_start());

// Returns newly created session ID
var_dump(session_id());
?>
--EXPECTF--
Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0
bool(true)
string(40) "%s"