#36857 [NEW]: readfile() problem(stream used)

From: Date: Sat, 25 Mar 2006 13:29:39 +0000
Subject: #36857 [NEW]: readfile() problem(stream used)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94872@lists.php.net to get a copy of this message
From: fcicqbbs at gmail dot com Operating system: windows xp PHP version: 5.1.2 PHP Bug Type: HTTP related Bug description: readfile() problem(stream used) Description: ------------ readfile() problem(stream used) stream functions do not support HTTP 1.1 206 Partial Content. Reproduce code: --------------- $context=array('http' => array ('header'=> 'Range: bytes=1024-', ),); $xcontext = stream_context_create($context); readfile('http://localhost/1.mp3',0,$xcontext); //the file is exist,if I don't use $xcontext,the code works well. Expected result: ---------------- I want to get the Partial Content from 1024 byte to the end of the file It says: [function.readfile]: failed to open stream: HTTP request failed! HTTP/1.1 206 Partial Content -- Edit bug report at http://bugs.php.net/?id=36857&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36857&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36857&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36857&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36857&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36857&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36857&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36857&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36857&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36857&r=support Expected behavior: http://bugs.php.net/fix.php?id=36857&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36857&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36857&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36857&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36857&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36857&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36857&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36857&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36857&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36857&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36857&r=mysqlcfg

« previous php.bugs (#94872) next »