Doc #80251 [Opn->Ver]: session_cache_expire() expects int
| From: | cmb@php.net | Date: | Sat, 17 Oct 2020 15:35:31 +0000 |
| Subject: | Doc #80251 [Opn->Ver]: session_cache_expire() expects int | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18008@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80251&edit=1
ID: 80251
Updated by: cmb@php.net
Reported by: a dot vysotsky at gmail dot com
-Summary: Fail input parameter type for session function
+Summary: session_cache_expire() expects int
-Status: Open
+Status: Verified
Type: Documentation Problem
-Package: Unknown/Other Function
+Package: Session related
-PHP Version: master-Git-2020-10-17 (Git)
+PHP Version: PHP 8
Block user comment: N
Private report: N
New Comment:
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>
Previous Comments:
------------------------------------------------------------------------
[2020-10-17 15:14:50] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80251&edit=1