public static function editor($file)
{
$tty = exec('tty');
$editor = escapeshellarg(getenv('EDITOR') ?: 'nano');
exec("{$editor} {$file} > {$tty}");
}
public function execute() { $root = Config::getPhpbrewRoot(); $php = Config::getCurrentPhpName(); $file = "{$root}/php/{$php}/etc/php.ini"; Utils::editor($file); }