From 0ebee4d29f16eb5ba469f96ca0571b993481bb67 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Fri, 5 Oct 2001 00:28:36 +0000 Subject: [PATCH] get rid of the RC part of php versions --- pear/PEAR.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } -- 2.50.1