- Fixed bug #21611 (version_compare() does not support "p" suffix)
authorfoobar <sniper@php.net>
Tue, 5 Aug 2003 12:34:31 +0000 (12:34 +0000)
committerfoobar <sniper@php.net>
Tue, 5 Aug 2003 12:34:31 +0000 (12:34 +0000)
ext/standard/versioning.c

index 3b650168689ce39f4bf043a892a4b2cb65476e4c..6a259dc035e3549cacd393601b9f647b73ae1ea2 100644 (file)
@@ -90,7 +90,7 @@ static int
 compare_special_version_forms(char *form1, char *form2)
 {
        int found1 = -1, found2 = -1;
-       special_forms_t special_forms[9] = {
+       special_forms_t special_forms[10] = {
                {"dev", 0},
                {"alpha", 1},
                {"a", 1},
@@ -99,6 +99,7 @@ compare_special_version_forms(char *form1, char *form2)
                {"RC", 3},
                {"#", 4},
                {"pl", 5},
+               {"p", 5},
                {NULL, 0},
        };
        special_forms_t *pp;