|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #36165 "==" considered harmful
Submitted: 2006-01-26 14:23 UTC Modified: 2006-01-27 11:25 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: scratch65536 at att dot net Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.4.2 OS: W2K, but irrelevant
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-01-26 14:23 UTC] scratch65536 at att dot net
To prevent "if ( $a = 2 )"-type errors, an EQ comparison operator would be very helpful.  (If I had the cost of all the time lost, worldwide, on that class of error, I'd be living in a villa on the Riviera.)

Although the EQ op is the only one actually needed, for symmetry's sake it would be pleasant to have the rest, too: NE,LT,LE,GE,GT).

Reproduce code:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-26 14:28 UTC]
This is not going to happen.
 [2006-01-27 11:25 UTC] scratch65536 at att dot net
I can recall Maurice Wilkes sending an auditorium filled with engineers into gales of laughter by pointing out that "The really nice thing about standards is that they ensure that everyone who comes after us makes the same mistakes we did".
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue May 11 07:01:23 2021 UTC