Bug #74936 [Ver->Csd]: session_cache_expire/cache_limiter/save_path() trigger a warning in read mode
| From: | nikic@php.net | Date: | Tue, 18 Jul 2017 20:26:10 +0000 |
| Subject: | Bug #74936 [Ver->Csd]: 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-210119@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: nikic@php.net
Reported by: smorozov at sugarcrm dot com
Summary: session_cache_expire/cache_limiter/save_path()
trigger a warning in read mode
-Status: Verified
+Status: Closed
Type: Bug
Package: Session related
Operating System: Linux
PHP Version: 7.2.0alpha3
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of morozov@tut.by
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5b12b46a19bc37d073c4ac32e62fbe823f786e09
Log: Fixed bug #74936 - session_*() functions trigger a warning in read mode when the session is
active
Previous Comments:
------------------------------------------------------------------------
[2017-07-17 09:55:06] smorozov at sugarcrm dot com
Patch: https://github.com/php/php-src/pull/2636
------------------------------------------------------------------------
[2017-07-17 09:41:01] requinix@php.net
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)
------------------------------------------------------------------------
[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