summaryrefslogtreecommitdiff
path: root/ext/standard/strnatcmp.c
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2004-07-15 19:41:25 +0000
committerSVN Migration <svn@php.net>2004-07-15 19:41:25 +0000
commit5c83dc9adee4691690822a05b290d7d9a9c04c31 (patch)
tree4c22c901829598dfe7fa599c41c0b2cb569f4afa /ext/standard/strnatcmp.c
parent8091552925399dc7dbe4d5c47e1cc53f900bc670 (diff)
downloadphp-git-php-5.0.0RC4.tar.gz
This commit was manufactured by cvs2svn to create tag 'php_5_0_0RC4'.php-5.0.0RC4
Diffstat (limited to 'ext/standard/strnatcmp.c')
-rw-r--r--ext/standard/strnatcmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/strnatcmp.c b/ext/standard/strnatcmp.c
index e1f491a3df..f0cc8f8672 100644
--- a/ext/standard/strnatcmp.c
+++ b/ext/standard/strnatcmp.c
@@ -153,13 +153,13 @@ PHPAPI int strnatcmp_ex(char const *a, size_t a_len, char const *b, size_t b_len
return +1;
++ap; ++bp;
- if (ap >= aend && bp >= bend)
+ if (ap == aend && bp == bend)
/* The strings compare the same. Perhaps the caller
will want to call strcmp to break the tie. */
return 0;
- else if (ap >= aend)
+ else if (ap == aend)
return -1;
- else if (bp >= bend)
+ else if (bp == bend)
return 1;
}
}