public function __construct($cwd, array $args = null, $prefix = null, $common_name = "php")
{
$this->cwd = $cwd;
$cmd = $common_name . "-config";
if (isset($prefix)) {
$cmd = $prefix . "/bin/" . $cmd;
}
$this->args = ["--with-php-config={$cmd}"];
if ($args) {
$this->args = array_merge($this->args, $args);
}
}