protected function streamContextOpts($args) { $streamContextOpts = parent::streamContextOpts($args); $streamContextOpts['http']['follow_location'] = false; $streamContextOpts['http']['max_redirects'] = 0; return $streamContextOpts; }
protected function streamContextOpts($args) { $opts = parent::streamContextOpts($args); $opts['http']['ignore_errors'] = true; return $opts; }