Doc #80251 [Ver->Csd]: session_cache_expire() expects int
| From: | cmb@php.net | Date: | Wed, 09 Dec 2020 12:57:27 +0000 |
| Subject: | Doc #80251 [Ver->Csd]: session_cache_expire() expects int | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18224@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: session_cache_expire() expects int
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Session related
PHP Version: PHP 8
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> Prior to PHP 8.0.0, session_cache_expire() actually expected a
> string [â¦]
Not really.
Anyhow, the docs have been fixed in the meantime, so closing.
Previous Comments:
------------------------------------------------------------------------
[2020-10-17 15:35:31] 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>
------------------------------------------------------------------------
[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