<?php

namespace BestIt\Mage\Tasks\Shopware;

use Mage\Task\AbstractTask as MageAbstractTask;

/**
 * Class AbstractTask
 *
 * @package BestIt\Mage\Tasks\Shopware
 * @author Ahmad El-Bardan <ahmad.el-bardan@bestit-online.de>
 */
abstract class AbstractTask extends MageAbstractTask
{
    /**
     * @return string
     */
    protected function getPathToPhpExecutable()
    {
        return
            ($this->runtime->getEnvOption('php_executable') !== null)
            ? $this->runtime->getEnvOption('php_executable')
            : 'php'
        ;
    }
}

<?php

namespace BestIt\Mage\Tasks\Shopware;

use Mage\Task\AbstractTask as MageAbstractTask;

/**
 * Class AbstractTask
 *
 * @package BestIt\Mage\Tasks\Shopware
 * @author Ahmad El-Bardan <ahmad.el-bardan@bestit-online.de>
 */
abstract class AbstractTask extends MageAbstractTask
{
    /**
     * @return string
     */
    protected function getPathToPhpExecutable()
    {
        return
            ($this->runtime->getConfigOption('php_executable') !== null)
            ? $this->runtime->getConfigOption('php_executable')
            : 'php'
        ;
    }
}

Fix php_executable option not being retrieved correctly.
Fix php_executable option not being retrieved correctly.
