Skip to content

Commit

Permalink
Ignore PHP startup errors
Browse files Browse the repository at this point in the history
This should fix issue 33, by ignoring PHP startup errors completely for any PHP processes started from within the application.
  • Loading branch information
jrfnl authored and grogy committed Sep 1, 2020
1 parent 7e913af commit 4d9bb4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Process/PhpProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ public function __construct(PhpExecutable $phpExecutable, array $parameters = ar
*/
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) {
$parameters = array_merge(array('-php'), $parameters);
array_unshift($parameters, '-php');
}

return $parameters;
Expand Down

0 comments on commit 4d9bb4a

Please sign in to comment.