com php-src: Add test for bug #61470. It is already fixed.: ext/session/tests/bug61470.phpt

From: Date: Mon, 02 Feb 2015 09:39:07 +0000
Subject: com php-src: Add test for bug #61470. It is already fixed.: ext/session/tests/bug61470.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84565@lists.php.net to get a copy of this message
Commit: fb803ff81993eb8acde0cdd5f513b6253221c349 Author: Yasuo Ohgaki <yohgaki@php.net> Mon, 2 Feb 2015 18:39:07 +0900 Parents: 0bfcc2829c8e0055787633b1afb9779753175594 Branches: PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fb803ff81993eb8acde0cdd5f513b6253221c349 Log: Add test for bug #61470. It is already fixed. Bugs: https://bugs.php.net/61470 Changed paths: A ext/session/tests/bug61470.phpt Diff: diff --git a/ext/session/tests/bug61470.phpt b/ext/session/tests/bug61470.phpt new file mode 100644 index 0000000..3dc068b --- /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); +

« previous php.cvs (#84565) next »