php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74936 session_cache_expire/cache_limiter/save_path() trigger a warning in read mode
Submitted: 2017-07-17 09:21 UTC Modified: 2017-07-17 09:55 UTC
From: smorozov at sugarcrm dot com Assigned:
Status: Closed Package: Session related
PHP Version: 7.2.0alpha3 OS: Linux
Private report: No CVE-ID: None
 [2017-07-17 09:21 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-17 09:40 UTC] requinix@php.net
-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
 [2017-07-17 09:41 UTC] 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:55 UTC] smorozov at sugarcrm dot com
Patch: https://github.com/php/php-src/pull/2636
 [2017-07-18 20:26 UTC] nikic@php.net
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
 [2017-07-18 20:26 UTC] nikic@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC