Req #73992 [Fbk->NoF]: unable to compare closures

From: Date: Sun, 03 Jan 2021 04:22:08 +0000
Subject: Req #73992 [Fbk->NoF]: unable to compare closures
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231339@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:     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)

« previous php.bugs (#231339) next »