summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2015-02-02 18:39:48 +0900
committerYasuo Ohgaki <yohgaki@php.net>2015-02-02 18:39:48 +0900
commit675a12bbcfa0015198fb612b6850ad99c2e6977e (patch)
tree4926cff41fda4e9be6fd35e66ac51c759bc1e682
parent969e3891216b543414c4931957069bdd9fa7f6cf (diff)
parentfb803ff81993eb8acde0cdd5f513b6253221c349 (diff)
downloadphp-git-675a12bbcfa0015198fb612b6850ad99c2e6977e.tar.gz
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: Add test for bug #61470. It is already fixed.
-rw-r--r--ext/session/tests/bug61470.phpt21
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);
+