Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6040743
PhpProcess.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhpProcess.php
View Options
<?php
namespace
JakubOnderka\PhpParallelLint\Process
;
class
PhpProcess
extends
Process
{
/**
* @param PhpExecutable $phpExecutable
* @param array $parameters
* @param string|null $stdIn
* @throws \JakubOnderka\PhpParallelLint\RunTimeException
*/
public
function
__construct
(
PhpExecutable
$phpExecutable
,
array
$parameters
=
array
(),
$stdIn
=
null
)
{
$constructedParameters
=
$this
->
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 4 2026, 20:33 (5 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
95/72/c4975ebbe610348426b37931c81b
Default Alt Text
PhpProcess.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment