Bug #78624 [Opn->Csd]: session_gc always returns FALSE for user defined handlers

From: Date: Fri, 04 Oct 2019 04:16:52 +0000
Subject: Bug #78624 [Opn->Csd]: session_gc always returns FALSE for user defined handlers
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223044@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 Updated by: krakjoe@php.net Reported by: bshafs at gmail dot com Summary: session_gc always returns FALSE for user defined handlers -Status: Open +Status: Closed Type: Bug Package: Session related Operating System: OSX PHP Version: 7.2.23 Block user comment: N Private report: N New Comment: Automatic comment on behalf of betterbrent@google.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=a6d219630c4128a124f3d9a2e7ca97afb92d5d47 Log: fix #78624: session_gc return value for user defined session handlers Previous Comments: ------------------------------------------------------------------------ [2019-10-02 23:59:54] bshafs at gmail dot com 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#223044) next »