40 if (function_exists($function)) {
41 $result = @call_user_func($function);
57 self::EXECUTABLE_PATH,
71 return isset($procInfo[self::PROCESS_ID]) ? intval($procInfo[self::PROCESS_ID]) : 0;
93 if ($statProc !==
false) {
95 self::PROCESS_ID => $statProc[
'pid'],
96 self::EXECUTABLE_PATH => $statProc[
'exe']
124 if ($procs !==
false) {
125 foreach ($procs as
$proc) {
126 if (
$proc[self::PROCESS_ID] == $pid) {
145 if (!empty($path) && is_file($path)) {
147 if ($procs !==
false) {
148 foreach ($procs as
$proc) {
150 if ($unixExePath == $path) {
165 public static function kill($pid)
179 public static function killBins($refreshProcs =
false)
185 if ($refreshProcs || $procs ===
null) {
189 if ($procs !==
false && $procs !==
null) {
190 foreach ($procs as
$proc) {
195 if (
$proc[self::PROCESS_ID] == self::getCurrentPid()) {
static contains($string, $search)
static startWith($string, $search)
static formatUnixPath($path)
static getListProcs($vbsKeys)
static killBins($refreshProcs=false)
static callWin32Ps($function)