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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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 13:01:35 2024 UTC