public function checkConflicts(Build $build)
{
if ($build->isEnabledVariant('apxs2') && version_compare($build->getVersion(), '5.4.0') < 0) {
if ($conflicts = $this->getConflict($build, 'apxs2')) {
$msgs = array();
$msgs[] = 'PHP Version lower than 5.4.0 can only build one SAPI at the same time.';
$msgs[] = '+apxs2 is in conflict with ' . implode(',', $conflicts);
foreach ($conflicts as $c) {
$msgs[] = "Disabling {$c}";
$build->disableVariant($c);
}
echo implode("\n", $msgs) . "\n";
}
}
return true;
}