本文整理汇总了PHP中Process::getProcessById方法的典型用法代码示例。如果您正苦于以下问题:PHP Process::getProcessById方法的具体用法?PHP Process::getProcessById怎么用?PHP Process::getProcessById使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Process
的用法示例。
在下文中一共展示了Process::getProcessById方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: closingProcessByProcessId
public function closingProcessByProcessId()
{
Process::getProcessById(getmypid())->close();
}
示例2: getExecutable
/**
* Retrieve the executable associated with this runtime.
*
* @return lang.Process
*/
public function getExecutable()
{
if (null === $this->executable) {
// Lazy-init
$this->executable = Process::getProcessById(getmypid(), defined('PHP_BINARY') ? constant('PHP_BINARY') : null);
}
return $this->executable;
}
示例3: getExecutable
/**
* Retrieve the executable associated with this runtime.
*
* @return lang.Process
*/
public function getExecutable()
{
if (NULL === $this->executable) {
// Lazy-init
$this->executable = Process::getProcessById(getmypid(), getenv('XP_RT'));
}
return $this->executable;
}