1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 09:32:55 +00:00

PHP version checks tweaking

This commit is contained in:
Possum 2015-05-05 20:18:24 +02:00
parent 13a3349603
commit 29ca21f30e
10 changed files with 13 additions and 13 deletions

View file

@ -377,11 +377,11 @@ EOT
$errors['ioncube'] = ioncube_loader_version();
}
if (version_compare(PHP_VERSION, '5.3.2', '<')) {
if (PHP_VERSION_ID < 50302) {
$errors['php'] = PHP_VERSION;
}
if (!isset($errors['php']) && version_compare(PHP_VERSION, '5.3.4', '<')) {
if (!isset($errors['php']) && PHP_VERSION_ID < 50304) {
$warnings['php'] = PHP_VERSION;
}

View file

@ -548,7 +548,7 @@ EOT
}
// php <5.3.3 has a very broken email validator, so bypass checks
if (version_compare(PHP_VERSION, '5.3.3', '<')) {
if (PHP_VERSION_ID < 50303) {
return true;
}