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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: renota at earthgaming dot com
New email:
PHP Version: OS:

 

 [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: Wed May 15 12:01:33 2024 UTC