diff options
| -rw-r--r-- | ext/session/tests/bug61470.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/session/tests/bug61470.phpt b/ext/session/tests/bug61470.phpt new file mode 100644 index 0000000000..3dc068b673 --- /dev/null +++ b/ext/session/tests/bug61470.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #61470 (session_regenerate_id() does not create session file) +--SKIPIF-- +<?php include('skipif.inc'); ?> +--INI-- +--FILE-- +<?php +$path = ini_get('session.save_path') . '/sess_'; + +ob_start(); +session_start(); +// starts session & creates and locks file +var_dump(is_file($path . session_id())); + +session_regenerate_id(); +// starts new session, but file is not create! +var_dump(is_file($path . session_id())); +--EXPECT-- +bool(true); +bool(true); + |
