php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62963 Invalid description of return values in function strcasecmp (allways 0)
Submitted: 2012-08-29 09:11 UTC Modified: 2012-08-29 09:15 UTC
From: srobowak at azet dot sk Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
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: srobowak at azet dot sk
New email:
PHP Version: OS:

 

 [2012-08-29 09:11 UTC] srobowak at azet dot sk
Description:
------------
---
From manual page: http://www.php.net/function.strcasecmp#refsect1-
function.strcasecmp-returnvalues
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-29 09:15 UTC] aharvey@php.net
-Status: Open +Status: Not a bug
 [2012-08-29 09:15 UTC] aharvey@php.net
No, the documentation is correct: strcasecmp() will return an integer, and that integer will only be 0 if the input strings are case-insensitively equal.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 08:01:34 2025 UTC