From: Tomas V.V.Cox Date: Fri, 5 Oct 2001 00:28:36 +0000 (+0000) Subject: get rid of the RC part of php versions X-Git-Tag: PRE_PARAMETER_PARSING_API~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ebee4d29f16eb5ba469f96ca0571b993481bb67;p=php get rid of the RC part of php versions --- diff --git a/pear/PEAR.php b/pear/PEAR.php index f5bce41577..f829c6b757 100644 --- a/pear/PEAR.php +++ b/pear/PEAR.php @@ -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; }