Closed geggleto closed 9 years ago
Good catch. I want to say that existed at one time, else it's a remnant from an earlier Guzzle stream implementation. Either way, this needs to go.
@codeguy Is this part of the code responsible for outputting the response body ?
Yes, it is the last stage in the app lifecycle which returns the content out of PHP to the upstream web server and on to the HTTP client. All isAttached()
does is make sure there is still an underlying resource attached to the StreamInterface instance.
I am going to wait to action this as I know the Slim\Http\Body object is changing with the UploadedFiles PSR implementation.
@geggleto Sounds good
Fixed via #1317
https://github.com/slimphp/Slim/blob/develop/Slim/App.php#L314