Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

任务配置中out参数处理问题 #12

Open
chiangzg opened this issue Oct 20, 2017 · 0 comments
Open

任务配置中out参数处理问题 #12

chiangzg opened this issue Oct 20, 2017 · 0 comments

Comments

@chiangzg
Copy link

看你的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'];
    }

这样一来就抛异常了呀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant