php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #78194 Wrong return type for SessionHandlerInterface::gc
Submitted: 2019-06-21 18:11 UTC Modified: 2021-02-16 12:32 UTC
From: bryan at theclays dot us Assigned: cmb (profile)
Status: Closed Package: Session related
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bryan at theclays dot us
New email:
PHP Version: OS:

 

 [2019-06-21 18:11 UTC] bryan at theclays dot us
Description:
------------
---
From manual page: https://php.net/sessionhandlerinterface.gc
From manual page: https://php.net/class.sessionhandlerinterface.php
---
Return type of SessionHandlerInterface::gc is stated as int in the function definition at the top, but documentation below states the return type is bool.

Test script:
---------------
n/a


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-07-13 22:11 UTC] carusogabriel@php.net
-Summary: return type of +Summary: Wrong return type for SessionHandlerInterface::gc
 [2019-07-13 22:11 UTC] carusogabriel@php.net
-Package: Unknown/Other Function +Package: Session related
 [2021-02-16 12:32 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-02-16 12:32 UTC] cmb@php.net
This has been fixed in the meantime.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jun 02 21:01:27 2025 UTC