jpush/jpush-api-php-client

NOTICE bug in JPush.php line 133.

Closed this issue · 1 comments

foreach (explode("\r\n", $header_text) as $i => $line) {
           if ($i === 0) {
                    $headers['http_code'] = $line;
           } else {
                    list ($key, $value) = explode(': ', $line); // HTTP headers last line is a empty line, Here cause NOTICE
                    $headers[$key] = $value;
            }
 }

In laravel will cause exception.

@chenset 你好,最新的 Version3.3.3 已经解决此问题