Doc #52036 [Opn->Wfx]: Small mistake on your web site

From: Date: Thu, 10 Jun 2010 03:03:51 +0000
Subject: Doc #52036 [Opn->Wfx]: Small mistake on your web site
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4523@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52036&edit=1 ID: 52036 Updated by: aharvey@php.net Reported by: wu-one at mail dot ru Summary: Small mistake on your web site -Status: Open +Status: Wont fix Type: Documentation Problem Package: Unknown/Other Function Operating System: Windows PHP Version: 5.3.2 New Comment: The C standard only guarantees that the C strcmp() function (which underlies the PHP function) returns "an integer greater than, equal to, or less than zero, accordingly as the string pointed to by s1 is greater than, equal to, or less than the string pointed to by s2". While most implementations do return +1, 0 and -1 as the return values, we can't assume that's the case on all platforms. Previous Comments: ------------------------------------------------------------------------ [2010-06-09 20:32:51] wu-one at mail dot ru Description: ------------ Just wanted to let you know that on your web site its writing about "strcmp": Returns < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal. I think it should be: Returns "-1" if str1 is less than str2; "1" if str1 is greater than str2, and "0" if they are equal. Thank you. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52036&edit=1

« previous php.doc.bugs (#4523) next »