diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2015-02-02 18:39:07 +0900 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2015-02-02 18:39:07 +0900 |
commit | fb803ff81993eb8acde0cdd5f513b6253221c349 (patch) | |
tree | fbdd17c4e64f2098f1b4bae97dbd0cbd8c5bdd65 /ext/session/tests/bug61470.phpt | |
parent | 0bfcc2829c8e0055787633b1afb9779753175594 (diff) | |
download | php-git-fb803ff81993eb8acde0cdd5f513b6253221c349.tar.gz |
Add test for bug #61470. It is already fixed.
Diffstat (limited to 'ext/session/tests/bug61470.phpt')
-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); + |