1--TEST-- 2Bug #68063 (Empty session IDs do still start sessions) 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--INI-- 6session.use_strict_mode=0 7session.sid_length=40 8session.sid_bits_per_character=4 9--FILE-- 10<?php 11// Empty session ID may happen by browser bugs 12 13// Could also be set with a cookie like "PHPSESSID=; path=/" 14session_id(''); 15 16// Start the session with empty string should result in new session ID 17var_dump(session_start()); 18 19// Returns newly created session ID 20var_dump(session_id()); 21?> 22--EXPECTF-- 23bool(true) 24string(40) "%s" 25