Bug #81237 [PATCH]: fake closure comparison doesn't work
| From: | krakjoe@php.net | Date: | Fri, 09 Jul 2021 07:15:33 +0000 |
| Subject: | Bug #81237 [PATCH]: fake closure comparison doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-234928@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81237&edit=1
ID: 81237
Patch added by: krakjoe@php.net
Reported by: krakjoe@php.net
Summary: fake closure comparison doesn't work
Status: Open
Type: Bug
Package: *General Issues
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: fake closure comparison
On GitHub: https://github.com/php/php-src/pull/7223
Patch: https://github.com/php/php-src/pull/7223.patch
Previous Comments:
------------------------------------------------------------------------
[2021-07-09 07:14:59] krakjoe@php.net
Description:
------------
It's currently not possible to compare fake closures.
Test script:
---------------
var_dump(Closure::fromCallable('strlen') == Closure::fromCallable('strlen'));
Expected result:
----------------
bool(true)
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81237&edit=1