/**
* 设置进程标题
* @param string $title
*/
public static function cli_set_process_title($title)
{
set_error_handler(function () {
});
if (function_exists('cli_set_process_title'))
{
cli_set_process_title($title);
}
restore_error_handler();
}原生PHP设置进程标题方式,MAC系统不支持也不会报错,PHP大于5.4才支持设置,完美处理,借鉴workerman的写法