constructParameters($parameters, $phpExecutable->isIsHhvmType()); parent::__construct($phpExecutable->getPath(), $constructedParameters, $stdIn); } /** * @param array $parameters * @param bool $isHhvm * @return array */ private function constructParameters(array $parameters, $isHhvm) { // Always ignore PHP startup errors ("Unable to load library...") in sub-processes. array_unshift($parameters, '-d display_startup_errors=0'); if ($isHhvm) { array_unshift($parameters, '-php'); } return $parameters; } }