Bug #66275 [Com]: HttpResponse::setStream($handle); don't run with a resource from StreamWrapper

From: Date: Thu, 12 Dec 2013 13:32:04 +0000
Subject: Bug #66275 [Com]: HttpResponse::setStream($handle); don't run with a resource from StreamWrapper
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183264@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66275&edit=1 ID: 66275 Comment by: erwan dot oger35 at gmail dot com Reported by: erwan dot oger35 at gmail dot com Summary: HttpResponse::setStream($handle); don't run with a resource from StreamWrapper Status: Open Type: Bug Package: Streams related Operating System: linux PHP Version: 5.4.22 Block user comment: N Private report: N New Comment: Note that the same problem can be met with the http_send_stream() function. Previous Comments: ------------------------------------------------------------------------ [2013-12-12 13:26:22] erwan dot oger35 at gmail dot com Description: ------------ --- From manual page: http://www.php.net/httpresponse.setstream --- When a resource is created by a streamWrapper::stream_open() method, it can't be "read" by the HttpResponse::setStream() method. However I can read it with fread() function. Test script: --------------- Expected result: ---------------- When I want to display a file contents, I expect to see it. Actual result: -------------- Actually, I see nothing (a white page on a browser) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66275&edit=1

« previous php.bugs (#183264) next »