Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ext/standard/strnatcmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ PHPAPI int strnatcmp_ex(char const *a, size_t a_len, char const *b, size_t b_len
else if (ap == aend && bp == bend)
/* End of the strings. Let caller sort them out. */
return 0;
else if (ap == aend)
return -1;
else if (bp == bend)
return 1;
else {
/* Keep on comparing from the current point. */
ca = *ap; cb = *bp;
Expand Down