1--TEST-- 2Bug #65475: Session ID is not initialized when session.usr_strict_mode=1 3--INI-- 4session.save_handler=files 5session.name=PHPSESSID 6--SKIPIF-- 7<?php include('skipif.inc'); ?> 8--FILE-- 9<?php 10ob_start(); 11 12echo "Testing file module".PHP_EOL; 13session_start(); 14$_SESSION['foo'] = 1234; 15$_SESSION['cnt'] = 1; 16$session_id = session_id(); 17session_write_close(); 18 19session_start(); 20var_dump($session_id === session_id()); 21$_SESSION['cnt']++; 22session_write_close(); 23 24session_start(); 25var_dump($session_id === session_id()); 26var_dump($_SESSION['cnt']); // Should be int(2) 27session_write_close(); 28--EXPECT-- 29Testing file module 30bool(true) 31bool(true) 32int(2) 33