Bug->Req #73992 [Opn->Fbk]: unable to compare closures
| From: | cmb@php.net | Date: | Wed, 23 Dec 2020 16:55:08 +0000 |
| Subject: | Bug->Req #73992 [Opn->Fbk]: unable to compare closures | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231240@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73992&edit=1
ID: 73992
Updated by: cmb@php.net
Reported by: markrashi at mail dot com
Summary: unable to compare closures
-Status: Open
+Status: Feedback
-Type: Bug
+Type: Feature/Change Request
-Package: *General Issues
+Package: Scripting Engine problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> $a == $b would check if $a and $b will execute the same code [â¦]
That's not possible in the general case, but may be possible for
userland function by comparing the opcode arrays; however, what is
the use case?
Previous Comments:
------------------------------------------------------------------------
[2017-01-25 12:56:06] markrashi at mail dot com
Description:
------------
Would it be possible to add support for comparison operators on closures?
$a == $b would check if $a and $b will execute the same code and if they are both bound to the same
$this and class scope?
thanks
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73992&edit=1