Req #73992 [Fbk->NoF]: unable to compare closures
Edit report at https://bugs.php.net/bug.php?id=73992&edit=1
ID: 73992
Updated by: php-bugs@lists.php.net
Reported by: markrashi at mail dot com
Summary: unable to compare closures
-Status: Feedback
+Status: No Feedback
Type: Feature/Change Request
Package: Scripting Engine problem
PHP Version: Irrelevant
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2020-12-23 16:55:08] cmb@php.net
> $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?
------------------------------------------------------------------------
[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
Thread (3 messages)