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

From: Date: Thu, 12 Dec 2013 13:26:22 +0000
Subject: Bug #66275 [NEW]: HttpResponse::setStream($handle); don't run with a resource from StreamWrapper
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183263@lists.php.net to get a copy of this message
From: erwan dot oger35 at gmail dot com Operating system: linux PHP version: 5.4.22 Package: Streams related Bug Type: Bug Bug description:HttpResponse::setStream($handle); don't run with a resource from StreamWrapper 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 bug report at https://bugs.php.net/bug.php?id=66275&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66275&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66275&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66275&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66275&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66275&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66275&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66275&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66275&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66275&r=support Expected behavior: https://bugs.php.net/fix.php?id=66275&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66275&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66275&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66275&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66275&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66275&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66275&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66275&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66275&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66275&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66275&r=mysqlcfg

« previous php.bugs (#183263) next »