php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #19053 why strcasecmp and not stricmp
Submitted: 2002-08-22 12:52 UTC Modified: 2002-08-22 12:54 UTC
From: gdbjohnson at hotmail dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.2.0 OS: Win2k
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gdbjohnson at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-08-22 12:52 UTC] gdbjohnson at hotmail dot com
Probably not worth much of your time, but I was wondering why you didn't choose to name strcasecmp as stricmp, since it is more intuitive with your function naming scheme:

ie:  
strstr : stristr
strpos : strrpos
etc.

It's just that I didn't find strcasecmp until later.  And "strcasecmp" almost implies a case-sensitive search, from the name itself.  

Just a thought.

cheers,
Greg

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-22 12:54 UTC] rasmus@php.net
Because strcasecmp is the name of the corresponding C function that most people are familiar with.  
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC