]> granicus.if.org Git - php/commitdiff
- Make version_compare() also understand the lower case variant of "RC".
authorDerick Rethans <derick@php.net>
Thu, 23 Aug 2007 11:36:14 +0000 (11:36 +0000)
committerDerick Rethans <derick@php.net>
Thu, 23 Aug 2007 11:36:14 +0000 (11:36 +0000)
ext/standard/versioning.c

index 6222a68a68a960425f610ae6e4273334c57307cc..55694f1dd8279bf51b2caf1ca4c2e7c1e37961f4 100644 (file)
@@ -91,13 +91,14 @@ static int
 compare_special_version_forms(char *form1, char *form2)
 {
        int found1 = -1, found2 = -1;
-       special_forms_t special_forms[10] = {
+       special_forms_t special_forms[11] = {
                {"dev", 0},
                {"alpha", 1},
                {"a", 1},
                {"beta", 2},
                {"b", 2},
                {"RC", 3},
+               {"rc", 3},
                {"#", 4},
                {"pl", 5},
                {"p", 5},