Skip to content

Commit 4d9bb4a

Browse files
jrfnlgrogy
authored andcommitted
Ignore PHP startup errors
This should fix issue 33, by ignoring PHP startup errors completely for any PHP processes started from within the application.
1 parent 7e913af commit 4d9bb4a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Process/PhpProcess.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ public function __construct(PhpExecutable $phpExecutable, array $parameters = ar
2323
*/
2424
private function constructParameters(array $parameters, $isHhvm)
2525
{
26+
// Always ignore PHP startup errors ("Unable to load library...") in sub-processes.
27+
array_unshift($parameters, '-d display_startup_errors=0');
28+
2629
if ($isHhvm) {
27-
$parameters = array_merge(array('-php'), $parameters);
30+
array_unshift($parameters, '-php');
2831
}
2932

3033
return $parameters;

0 commit comments

Comments
 (0)