guzzle / psr7

PSR-7 HTTP message library
MIT License
7.87k stars 3 forks source link

Handling fopen url resources in PHP 7 #123

Closed OpenGrid closed 3 years ago

OpenGrid commented 8 years ago

Something has changed between PHP 7 and PHP 5 in terms of handling fopen resources in multipart transfers via GuzzleHttpClient. Files need to be proxied via local file first otherwise requests seem to be different between php versions.

Looks like an invalid chunked body problem

Nyholm commented 8 years ago

That is interesting. Would you mind providing a unit test for this issue?

Tobion commented 7 years ago

Can you give more details how to reproduce the problem?

OpenGrid commented 7 years ago

Try to post a file to a server using Guzzle when a file resource is created from a remote address not a local file. It works in PHP 5 but not in PHP 7

miquelbrazil commented 6 years ago

I'm noticing this same issue. Did you ever discover anything further about this @OpenGrid?

GrahamCampbell commented 3 years ago

Closing due to inactivity. If this issue is still present, please feel free to open a fresh issue with a way to re-produce. :)