Esempio n. 1
0
 public function closingProcessByProcessId()
 {
     Process::getProcessById(getmypid())->close();
 }
Esempio n. 2
0
 /**
  * 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;
 }
Esempio n. 3
0
 /**
  * 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;
 }