Bug #74936 [Opn->Ver]: session_cache_expire/cache_limiter/save_path() trigger a warning in read mode
| From: | requinix@php.net | Date: | Mon, 17 Jul 2017 09:41:02 +0000 |
| Subject: | Bug #74936 [Opn->Ver]: session_cache_expire/cache_limiter/save_path() trigger a warning in read mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-210082@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74936&edit=1
ID: 74936
Updated by: requinix@php.net
Reported by: smorozov at sugarcrm dot com
-Summary: session_cache_expire() triggers a warning in read
mode
+Summary: session_cache_expire/cache_limiter/save_path()
trigger a warning in read mode
-Status: Open
+Status: Verified
Type: Bug
Package: Session related
Operating System: Linux
PHP Version: 7.2.0alpha3
Block user comment: N
Private report: N
New Comment:
Also applies to session_cache_limiter() and session_save_path().
These three should be the last of the "warning in read mode" bugs. The other ~80
php_error_docref warnings in session.c look good.
(comment for linkage: bug #74514)
Previous Comments:
------------------------------------------------------------------------
[2017-07-17 09:21:02] smorozov at sugarcrm dot com
Description:
------------
This is very similar to #74514. When the session is started, and session_cache_expire() is called
without an argument, it still triggers a warning: Cannot change cache expire when session is active.
Test script:
---------------
<?php
session_start();
session_cache_expire();
Expected result:
----------------
No warning triggered
Actual result:
--------------
Warning: session_cache_expire(): Cannot change cache expire when session is active in test.php on
line 4
Call Stack:
0.0000 397096 1. {main}() test.php:0
0.0001 397488 2. session_cache_expire() test.php:4
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74936&edit=1