mirror of
https://github.com/php/php-src.git
synced 2025-01-07 19:44:02 +08:00
25 lines
538 B
PHP
25 lines
538 B
PHP
--TEST--
|
|
Bug #68063 (Empty session IDs do still start sessions)
|
|
--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--
|
|
bool(true)
|
|
string(40) "%s"
|