]> granicus.if.org Git - php/commitdiff
get rid of the RC part of php versions
authorTomas V.V.Cox <cox@php.net>
Fri, 5 Oct 2001 00:28:36 +0000 (00:28 +0000)
committerTomas V.V.Cox <cox@php.net>
Fri, 5 Oct 2001 00:28:36 +0000 (00:28 +0000)
pear/PEAR.php

index f5bce41577ca340175ff2a916e2541ca30d954a1..f829c6b7573e0409abfa2fd91612b5e005f3c0d5 100644 (file)
@@ -502,9 +502,10 @@ class PEAR
     */
     function _explodePHPVersion($version)
     {
-        @list($v, ) = explode('-', $version); // 4.0.7-dev
-        list($mayor, $minor, $sub) = explode('.', $v);
-        @list($sub, $patch) = explode('pl', $sub); // 4.0.14pl1
+        @list($version, ) = explode('-', $version);  // 4.0.7-dev
+        @list($version, ) = explode('RC', $version); // 4.0.7RC1
+        list($mayor, $minor, $sub) = explode('.', $version);
+        @list($sub, $patch) = explode('pl', $sub);   // 4.0.14pl1
         if ($patch === null) {
             $patch = 0;
         }