php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #80251 session_cache_expire() expects int
Submitted: 2020-10-17 15:14 UTC Modified: 2020-10-17 15:35 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: a dot vysotsky at gmail dot com Assigned:
Status: Verified Package: Session related
PHP Version: PHP 8 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2020-10-17 15:14 UTC] a dot vysotsky at gmail dot com
Description:
------------
---
From manual page: https://php.net/function.session-cache-expire
---

Fail input parameter type: "string" given, "int" must be.

P.S.: Don't need to select "PHP version" for documentation problem on bug report page.

P.S.2: Rename, please, "short description" to "summary" in error message "You must supply a short description of the bug you are reporting" on bug report page.


Test script:
---------------
session_cache_expire ([ string $new_cache_expire ] ) : int



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-17 15:35 UTC] cmb@php.net
-Summary: Fail input parameter type for session function +Summary: session_cache_expire() expects int -Status: Open +Status: Verified -Package: Unknown/Other Function +Package: Session related -PHP Version: master-Git-2020-10-17 (Git) +PHP Version: PHP 8
 [2020-10-17 15:35 UTC] cmb@php.net
Prior to PHP 8.0.0, session_cache_expire() actually expected a
string (whereas type juggling took place even in script_types
mode). Only as of PHP 8.0.0, the parameter is of type int.

> Don't need to select "PHP version" for documentation problem on
> bug report page.

This is why there is the option to choose "Irrelevant".  And in
this case the docs are even depending on the PHP version.

> Rename, please, "short description" to "summary" in error
> message "You must supply a short description of the bug you are
> reporting" on bug report page.

If you feel strongly about this, please open another bug report.
Also consider to submit a pull request[1].

[1] <https://github.com/php/web-bugs/pulls>
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 08:01:23 2020 UTC