Files
ezmigrationbundle/Core/Process/Process.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();
}
}