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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: krakjoe@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

Pull requests:

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC