Nyholm / psr7

A super lightweight PSR-7 implementation
MIT License
1.16k stars 75 forks source link

Stupid error #186

Closed jorgdz closed 2 years ago

jorgdz commented 3 years ago
Nyholm commented 3 years ago

Could you elaborate why this is needed?

According to the PSR-17 specification, we do need to open the file.

frikiluser commented 2 years ago

Could you elaborate why this is needed?

According to the PSR-17 specification, we do need to open the file.

Probably the $mode should be checked/sanitized before opening the file. But I think it's not the point of this issue.