php.net |  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: krakjoe@php.net Assigned: krakjoe (profile)
Status: Closed Package: *General Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2021-07-09 07:14 UTC] 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)

Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-07-09 07:15 UTC] 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-13 13:37 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2021-07-13 13:37 UTC] krakjoe@php.net
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.


 [2021-07-13 13:37 UTC] krakjoe@php.net
Note: 6a9daafed4d26cd26b730e07e9339e35fb833f58
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Nov 28 09:03:14 2021 UTC