Bug #79732 [Opn->Dup]: Raise Segfault using fn()
| From: | nikic@php.net | Date: | Thu, 25 Jun 2020 08:33:22 +0000 |
| Subject: | Bug #79732 [Opn->Dup]: Raise Segfault using fn() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-227646@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79732&edit=1
ID: 79732
Updated by: nikic@php.net
Reported by: php at stampy dot me
Summary: Raise Segfault using fn()
-Status: Open
+Status: Duplicate
Type: Bug
Package: Unknown/Other Function
Operating System: MacOS / Docker
PHP Version: 7.4.7
Block user comment: N
Private report: N
New Comment:
Duplicate of bug #64196.
Previous Comments:
------------------------------------------------------------------------
[2020-06-25 08:27:06] php at stampy dot me
Description:
------------
The example below causes a segfault when it should error gracefully or loop forever.
Test script:
---------------
<?php
function fun($str) {
array_map(fn () => fun($str), $str);
}
fun(['hello world!']);
Expected result:
----------------
Error, or no output, or endless looping
Actual result:
--------------
SegFault
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79732&edit=1