|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76786 invalid session_write_close() return type
Submitted: 2018-08-23 16:55 UTC Modified: 2018-08-24 13:54 UTC
From: szymon at wojdan dot tk Assigned: cmb (profile)
Status: Closed Package: Session related
PHP Version: 7.0.31 OS: Any
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: szymon at wojdan dot tk
New email:
PHP Version: OS:


 [2018-08-23 16:55 UTC] szymon at wojdan dot tk
Documentation for session_write_close() states that it returns boolean value but according to this this statement is true only for version >= 7.2. For earlier versions this function returns nothing. I assume reference to return value should specify that earlier versions don't return anything and that boolean return value is available for versions 7.2 and higher.

Test script:
// for php versions before 7.2
$result = session_write_close();

Expected result:
<script_name>:<line>:boolean true

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-23 18:06 UTC]
-Status: Open +Status: Verified -Package: Documentation problem +Package: Session related -Assigned To: +Assigned To: cmb
 [2018-08-24 02:28 UTC]
Sorry, it's only in UPGRADING. I'm not sure why it's not properly documented.
 [2018-08-24 13:54 UTC]
Automatic comment from SVN on behalf of cmb
Log: Fix #76786: invalid session_write_close() return type

Adding respective changelog entries, as usual, should be sufficient.
 [2018-08-24 13:54 UTC]
-Status: Verified +Status: Closed
 [2018-08-24 13:54 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:05 UTC]
Automatic comment on behalf of cmb
Log: Fix #76786: invalid session_write_close() return type
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 16:01:35 2024 UTC