cvs: php4 /pear PEAR.php
| From: | Thomas V.V.Cox | Date: | Fri, 05 Oct 2001 00:28:37 +0000 |
| Subject: | cvs: php4 /pear PEAR.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-927@lists.php.net to get a copy of this message | ||
cox Thu Oct 4 20:28:37 2001 EDT
Modified files:
/php4/pear PEAR.php
Log:
get rid of the RC part of php versions
Index: php4/pear/PEAR.php
diff -u php4/pear/PEAR.php:1.21 php4/pear/PEAR.php:1.22
--- php4/pear/PEAR.php:1.21 Thu Oct 4 15:05:09 2001
+++ php4/pear/PEAR.php Thu Oct 4 20:28:36 2001
@@ -19,7 +19,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: PEAR.php,v 1.21 2001/10/04 19:05:09 cox Exp $
+// $Id: PEAR.php,v 1.22 2001/10/05 00:28:36 cox Exp $
//
define('PEAR_ERROR_RETURN', 1);
@@ -502,9 +502,10 @@
*/
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;
}