php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #42445 fopen url wrapper doesn't handle chunked encoding
Submitted: 2007-08-27 14:46 UTC Modified: 2013-02-18 00:33 UTC
Votes:17
Avg. Score:4.8 ± 0.6
Reproduced:16 of 16 (100.0%)
Same Version:7 (43.8%)
Same OS:14 (87.5%)
From: jerome at rainstormconsulting dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.2.3 OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jerome at rainstormconsulting dot com
New email:
PHP Version: OS:

 

 [2007-08-27 14:46 UTC] jerome at rainstormconsulting dot com
Description:
------------
Opening a URL via fopen()/fread() does not work properly if Transfer-
Encoding: chunked is used

Reproduce code:
---------------
<?php
$fp = fopen('http://www.bluestatecoffee.com/blog/topics/blue-state-coffee-news/feed/rss2', 'r');
$data = fread($fp, 45);
print htmlentities($data);

Expected result:
----------------
<?xml version="1.0" encoding="UTF-8"?>

Actual result:
--------------
29d0 <?xml version="1.0" encoding="UTF-8"?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-08 15:52 UTC] artnorm at gmail dot com
This problem might be solved today. When I read it right on "HTTP context options" <http://www.php.net/manual/en/context.http.php>, chunked transfer should now be supported.
 [2010-08-08 16:04 UTC] pajoye@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues
 [2010-08-08 16:04 UTC] pajoye@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2013-02-18 00:33 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 11:01:27 2024 UTC