php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73992 unable to compare closures
Submitted: 2017-01-25 12:56 UTC Modified: -
From: markrashi at mail dot com Assigned:
Status: Open Package: *General Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
29 - 14 = ?
Subscribe to this entry?

 
 [2017-01-25 12:56 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 21:01:26 2019 UTC