|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81237 fake closure comparison doesn't work
Submitted: 2021-07-09 07:14 UTC Modified: 2021-07-13 13:37 UTC
From: Assigned: krakjoe (profile)
Status: Closed Package: *General Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2021-07-09 07:14 UTC]
It's currently not possible to compare fake closures.

Test script:
var_dump(Closure::fromCallable('strlen') == Closure::fromCallable('strlen'));

Expected result:

Actual result:


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-07-09 07:15 UTC]
The following pull request has been associated:

Patch Name: fake closure comparison
On GitHub:
 [2021-07-13 13:37 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2021-07-13 13:37 UTC]
The fix for this bug has been committed.
If you are still experiencing this bug, try to check out latest source from and re-test.
Thank you for the report, and for helping us make PHP better.

 [2021-07-13 13:37 UTC]
Note: 6a9daafed4d26cd26b730e07e9339e35fb833f58
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Dec 06 18:01:28 2023 UTC