derick          Thu Aug 23 18:38:42 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src    NEWS 
    /php-src/ext/standard       versioning.c 
  Log:
  - MFH: Make version_compare() also understand the lower case variant of "RC".
  
  
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.907&r2=1.2027.2.547.2.908&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.907 php-src/NEWS:1.2027.2.547.2.908
--- php-src/NEWS:1.2027.2.547.2.907     Thu Aug 23 02:04:39 2007
+++ php-src/NEWS        Thu Aug 23 18:38:42 2007
@@ -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)
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/versioning.c?r1=1.19.2.1.2.2&r2=1.19.2.1.2.3&diff_format=u
Index: php-src/ext/standard/versioning.c
diff -u php-src/ext/standard/versioning.c:1.19.2.1.2.2 
php-src/ext/standard/versioning.c:1.19.2.1.2.3
--- php-src/ext/standard/versioning.c:1.19.2.1.2.2      Mon Jan  1 09:36:09 2007
+++ php-src/ext/standard/versioning.c   Thu Aug 23 18:38:42 2007
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: versioning.c,v 1.19.2.1.2.2 2007/01/01 09:36:09 sebastian Exp $ */
+/* $Id: versioning.c,v 1.19.2.1.2.3 2007/08/23 18:38:42 derick Exp $ */
 
 #include <stdio.h>
 #include <sys/types.h>
@@ -90,13 +90,14 @@
 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},

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to