|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-02-12 08:32 UTC] kalle@php.net
-Status: Open
+Status: Wont fix
[2011-02-12 08:32 UTC] kalle@php.net
[2011-02-12 08:35 UTC] charlie at charliesomerville dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 01:00:02 2025 UTC |
Description: ------------ PHP's strcmp() return value is inconsistent across operating systems. On Windows and Linux, strcmp("foo","bar") returns 1. However, on Mac OS X, strcmp("foo","bar") returns 4. Technically, both of these return values are correct, however the 4 is inconsistent with the return values on other operating systems. Test script: --------------- <?php echo strcmp("foo","bar"); Expected result: ---------------- 1 Actual result: -------------- 4