Lines Matching refs:version2
42 public static function version_compare_replacement_sub($version1, $version2, $operator='') { argument
63 $version2 = (isset($versiontype_lookup[$version2]) ? $versiontype_lookup[$version2] : $version2);
68 return (int) ($version1 < $version2);
72 return (int) ($version1 <= $version2);
76 return (int) ($version1 > $version2);
80 return (int) ($version1 >= $version2);
85 return (int) ($version1 == $version2);
90 return (int) ($version1 != $version2);
93 if ($version1 == $version2) {
95 } elseif ($version1 < $version2) {
102 public static function version_compare_replacement($version1, $version2, $operator='') { argument
105 return version_compare($version1, $version2, $operator);
110 $version2 = strtr($version2, '_-+', '...');
115 $version2 = preg_replace('#([\d]+)([A-Z]+)([\d]+)#i', '$1.$2.$3', $version2);
121 $comparison = self::version_compare_replacement_sub($version1, $version2, $operator);