Bug #78624 [PATCH]: session_gc always returns FALSE for user defined handlers
| From: | bshafs@gmail.com | Date: | Wed, 02 Oct 2019 23:59:54 +0000 |
| Subject: | Bug #78624 [PATCH]: session_gc always returns FALSE for user defined handlers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-223009@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78624&edit=1
ID: 78624
Patch added by: bshafs@gmail.com
Reported by: bshafs at gmail dot com
Summary: session_gc always returns FALSE for user defined
handlers
Status: Open
Type: Bug
Package: Session related
Operating System: OSX
PHP Version: 7.2.23
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: fix #78624: session_gc return value for user defined session handlers
On GitHub: https://github.com/php/php-src/pull/4775
Patch: https://github.com/php/php-src/pull/4775.patch
Previous Comments:
------------------------------------------------------------------------
[2019-10-02 23:25:32] bshafs at gmail dot com
The following patch has been added/updated:
Patch Name: 151203849618
Revision: 1570058732
URL: https://bugs.php.net/patch-display.php?bug=78624&patch=151203849618&revision=1570058732
------------------------------------------------------------------------
[2019-10-02 23:25:07] bshafs at gmail dot com
Description:
------------
The function "session_gc()" ALWAYS returns false for user-defined session handlers.
Test script:
---------------
https://gist.github.com/bshaffer/31d6e1c9efc369a27fa5bf7be61e9f4c
Expected result:
----------------
When an int or "true" is returned from the "gc" method of the user-defined
session handler, "session_gc()" should return an int representing the number of deleted
records (or "1" when true is returned).
Actual result:
--------------
The method "session_gc()" returns false regaredless of what is returned by the
"gc" method.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78624&edit=1