Bug #81237 [NEW]: fake closure comparison doesn't work
| From: | krakjoe@php.net | Date: | Fri, 09 Jul 2021 07:14:59 +0000 |
| Subject: | Bug #81237 [NEW]: fake closure comparison doesn't work | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-234927@lists.php.net to get a copy of this message | ||
From: krakjoe
Operating system:
PHP version: Irrelevant
Package: *General Issues
Bug Type: Bug
Bug description:fake closure comparison doesn't work
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 bug report at https://bugs.php.net/bug.php?id=81237&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81237&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81237&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81237&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81237&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81237&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81237&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81237&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81237&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81237&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81237&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81237&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81237&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81237&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81237&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81237&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81237&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81237&r=mysqlcfg