laminas / laminas-http

Provides an easy interface for performing Hyper-Text Transfer Protocol (HTTP) requests
https://docs.laminas.dev/laminas-http/
BSD 3-Clause "New" or "Revised" License
36 stars 27 forks source link

Regression: non-float HTTP version detection #61

Closed boesing closed 2 years ago

boesing commented 2 years ago
Q A
Bugfix yes
BC Break yes (fixed now)

Description

With v2.15.0, we've also added some stricter comparisons of variables. The HTTP AdapterInterface states it consumes string values but somehow, the Curl adapter implemented the default as float. Due to the lack of strict comparison and strict types, that worked well before we added ===.

This patch allows both string and float values.