mirror of
https://github.com/JBDevLabs/ezmigrationbundle.git
synced 2026-03-24 08:52:16 +01:00
29 lines
731 B
PHP
29 lines
731 B
PHP
<?php
|
|
|
|
namespace Kaliop\eZMigrationBundle\Core\Process;
|
|
|
|
use Symfony\Component\Process\Process as BaseProcess;
|
|
|
|
/**
|
|
* Allow to force Symfony Process objects to trust that php has been compiled with --enable-sigchild even when the
|
|
* options used to compile php are not visible to phpinfo, such as on Debian/Ubuntu
|
|
*/
|
|
class Process extends BaseProcess
|
|
{
|
|
static $forceSigchildEnabled = null;
|
|
|
|
public static function forceSigchildEnabled($force)
|
|
{
|
|
self::$forceSigchildEnabled = (bool) $force;
|
|
}
|
|
|
|
protected function isSigchildEnabled()
|
|
{
|
|
if (null !== self::$forceSigchildEnabled) {
|
|
return self::$forceSigchildEnabled;
|
|
}
|
|
|
|
return parent::isSigchildEnabled();
|
|
}
|
|
}
|