1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 01:23:53 +02:00

get rid of the RC part of php versions

This commit is contained in:
Tomas V.V.Cox
2001-10-05 00:28:36 +00:00
parent 98a8ea2203
commit 0ebee4d29f

View 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;
}