-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
看你的demo,out参数对应的应该是脚本执行日志吧,getProtocol中做了如下处理:
/**
*
* @param $stream
* @return mixed
*/
protected static function getProtocol($stream)
{
if(strpos($stream, 'unix') === 0){
return 'unix';
}
$stream_info = parse_url($stream);
if (!array_key_exists('scheme', $stream_info)) {
throw new \InvalidArgumentException("stream format error");
}
return $stream_info['scheme'];
}这样一来就抛异常了呀
Metadata
Metadata
Assignees
Labels
No labels