Bug #78624 [NEW]: session_gc always returns FALSE for user defined handlers

From: Date: Wed, 02 Oct 2019 23:25:07 +0000
Subject: Bug #78624 [NEW]: session_gc always returns FALSE for user defined handlers
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223004@lists.php.net to get a copy of this message
From:             bshafs at gmail dot com
Operating system: OSX
PHP version:      7.2.23
Package:          Session related
Bug Type:         Bug
Bug description:session_gc always returns FALSE for user defined handlers

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 bug report at https://bugs.php.net/bug.php?id=78624&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=78624&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=78624&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=78624&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=78624&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=78624&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=78624&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=78624&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=78624&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=78624&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=78624&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78624&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=78624&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=78624&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=78624&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=78624&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=78624&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=78624&r=mysqlcfg


Thread (4 messages)

« previous php.bugs (#223004) next »