Bug #81237 [Opn->Csd]: fake closure comparison doesn't work
| From: | krakjoe@php.net | Date: | Tue, 13 Jul 2021 13:37:29 +0000 |
| Subject: | Bug #81237 [Opn->Csd]: fake closure comparison doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235002@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
Updated by: krakjoe@php.net
Reported by: krakjoe@php.net
Summary: fake closure comparison doesn't work
-Status: Open
+Status: Closed
Type: Bug
Package: *General Issues
PHP Version: Irrelevant
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
If you are still experiencing this bug, try to check out latest source from https://github.com/php/php-src and re-test.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2021-07-09 07:15:33] krakjoe@php.net
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
------------------------------------------------------------------------
[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