php.net |  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
Votes:1
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
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:
15 - 3 = ?
Subscribe to this entry?

 
 [2006-01-26 14:23 UTC] scratch65536 at att dot net
Description:
------------
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:
---------------
n/a

Expected result:
----------------
n/a

Actual result:
--------------
n/a

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-26 14:28 UTC] tony2001@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 01:01:30 2024 UTC