1--TEST-- 2Bug #61470 (session_regenerate_id() does not create session file) 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--FILE-- 6<?php 7ob_start(); 8ini_set('session.save_path', __DIR__); 9$path = ini_get('session.save_path') . '/sess_'; 10session_start(); 11// starts session & creates and locks file 12$file1 = $path . session_id(); 13var_dump(is_file($file1)); 14 15session_regenerate_id(); 16// starts new session, but file is not create! 17$file2 = $path . session_id(); 18var_dump(is_file($file2)); 19 20// cleanup 21@unlink($file1); 22@unlink($file2); 23?> 24--EXPECT-- 25bool(true) 26bool(true) 27