#36857 [Opn->Csd]: readfile() problem(stream used)

From: Date: Sun, 26 Mar 2006 17:13:05 +0000
Subject: #36857 [Opn->Csd]: readfile() problem(stream used)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94906@lists.php.net to get a copy of this message
 ID:               36857
 Updated by:       iliaa@php.net
 Reported By:      fcicqbbs at gmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         HTTP related
 Operating System: windows xp
 PHP Version:      5.1.2
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2006-03-25 14:29:38] fcicqbbs at gmail dot com

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 this bug report at http://bugs.php.net/?id=36857&edit=1


Thread (3 messages)

« previous php.bugs (#94906) next »