php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #21990 switch() compare using ===
Submitted: 2003-01-31 16:09 UTC Modified: 2003-03-24 12:46 UTC
From: renota at earthgaming dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.2.2 OS: Linux
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:
25 + 5 = ?
Subscribe to this entry?

 
 [2003-01-31 16:09 UTC] renota at earthgaming dot com
Hi, 
I was doing some developing and noticed that switch() only 
does a == compare and not a === compare (e.g. case -7:).  
I would like to request it (if it's not aleady done). 
 
Thank you for your time. 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-24 12:46 UTC] sniper@php.net
It's a feature and will not change.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 10 14:01:33 2024 UTC