We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c24fc commit be1d1f6Copy full SHA for be1d1f6
src/Runner/PhpInterpreter.php
@@ -70,7 +70,7 @@ public function __construct(string $path, array $args = [])
70
71
$parts = explode("\r\n\r\n", $output, 2);
72
$this->cgi = count($parts) === 2;
73
- $this->info = @unserialize(strstr($parts[$this->cgi], 'O:8:"stdClass"'));
+ $this->info = @unserialize((string) strstr($parts[$this->cgi], 'O:8:"stdClass"'));
74
$this->error .= strstr($parts[$this->cgi], 'O:8:"stdClass"', true);
75
if (!$this->info) {
76
throw new \Exception("Unable to detect PHP version (output: $output).");
0 commit comments