forked from Wavyzz/dolibarr
New: Gestion de la version minimale de php pour les modules.
This commit is contained in:
@@ -61,9 +61,17 @@ function versiontostring($versionarray)
|
|||||||
*/
|
*/
|
||||||
function versioncompare($versionarray1,$versionarray2)
|
function versioncompare($versionarray1,$versionarray2)
|
||||||
{
|
{
|
||||||
// \todo
|
$ret=0;
|
||||||
|
$i=0;
|
||||||
return 0;
|
while ($i < max(sizeof($versionarray1),sizeof($versionarray1)))
|
||||||
|
{
|
||||||
|
$operande1=isset($versionarray1[$i])?$versionarray1[$i]:0;
|
||||||
|
$operande2=isset($versionarray2[$i])?$versionarray2[$i]:0;
|
||||||
|
if ($operande1 < $operande2) { $ret = -1; break; }
|
||||||
|
if ($operande1 > $operande2) { $ret = 1; break; }
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user