This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get process by pid Windows|Linux | |
* | |
* @param int $pid PID or 0 to reset cache | |
* @param bool $disable_cache Disable cache for extracted process list (very slow) | |
* | |
* @return false|string | |
*/ | |
function pid2proc( int $pid = 0, $disable_cache = false ) { | |
static $cache; |