php-http / message

HTTP Message related tools
http://php-http.org
MIT License
1.29k stars 41 forks source link

trigger_error instead of exceptions #104

Closed dbu closed 5 years ago

dbu commented 5 years ago
Q A
Bug fix? yes
New feature? no
BC breaks? reverts BC break of #100
Deprecations? yes
Related tickets fixes #100
Documentation -
License MIT

What's in this PR?

Use trigger_error rather than throw exceptions

Why?

Consumers SHOULD are supposed to check isSeekable and only seek/rewind if that returns true, but it seems they don't all do that.

Checklist