1--TEST-- 2Bug #72940 - SID always defined 3--INI-- 4error_reporting=-1 5session.save_path= 6session.name=PHPSESSID 7session.save_handler=files 8--SKIPIF-- 9<?php include('skipif.inc'); ?> 10--COOKIE-- 11PHPSESSID=bug72940test 12--GET-- 13PHPSESSID=bug72940get 14--FILE-- 15<?php 16ob_start(); 17 18ini_set('session.use_strict_mode', 0); 19ini_set('session.use_cookies', 1); 20ini_set('session.use_only_cookies', 0); 21session_start(); 22var_dump(session_id(), SID); 23session_destroy(); 24 25ini_set('session.use_strict_mode', 0); 26ini_set('session.use_cookies', 0); 27ini_set('session.use_only_cookies', 0); 28session_start(); 29var_dump(session_id(), SID); 30session_destroy(); 31?> 32--EXPECTF-- 33string(12) "bug72940test" 34string(0) "" 35string(11) "bug72940get" 36string(21) "PHPSESSID=bug72940get" 37