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

diff --git a/NEWS b/NEWS
index 8ea894226f0beb9e94191b3478a91b80e45f6f00..0ed8fd15763f03d942c1ada6a5f6383ff28a98c3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? Aug 2007, PHP 5.2.4
+- Fixed version_compare() to support "rc" as well as "RC" for release
+  candidate version numbers.
 - Fixed bug #42368 (Incorrect error message displayed by pg_escape_string).
   (Ilia)
 - Fixed bug #42365 (glob() crashes and/or accepts way too many flags). (Jani)
index 87f3d71163b3d18aef0d45680a81d0104d5ac842..f9070418a88ff19c95459e1c9daaab7ad5f0d65f 100644 (file)
@@ -90,13 +90,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},