Bug #73461 [Opn->Asn]: Segfault when always regenerating session id from read handler [PHP 7 only]
| From: | laruence@php.net | Date: | Sat, 05 Nov 2016 08:30:23 +0000 |
| Subject: | Bug #73461 [Opn->Asn]: Segfault when always regenerating session id from read handler [PHP 7 only] | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205194@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73461&edit=1
ID: 73461
Updated by: laruence@php.net
Reported by: love at sickpeople dot se
Summary: Segfault when always regenerating session id from
read handler [PHP 7 only]
-Status: Open
+Status: Assigned
Type: Bug
Package: Reproducible crash
PHP Version: 7.1.0RC5
-Assigned To:
+Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
stack overflow
Previous Comments:
------------------------------------------------------------------------
[2016-11-04 17:17:13] love at sickpeople dot se
Description:
------------
The code below segfaults in PHP 7.x including PHP 7.1 RC5.
Basically this is a segfault due to infinite recursion and I know there has been reports about that
before. I created this bug for one main reason: this crash does NOT occur in PHP 5.x, including
5.6.27. It "appeared" in PHP 7.0.
Please see demo here: https://3v4l.org/Lc1cX
Test script:
---------------
session_set_save_handler ('sess', 'sess', 'sess_read',
'sess', 'sess', 'sess');
session_start ();
Function sess ($foo = 'foo') { return true; }
Function sess_read ($id)
{
session_regenerate_id (false);
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73461&edit=1