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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat Nov 29 13:00:01 2025 UTC