Edit report at http://bugs.php.net/bug.php?id=42445&edit=1
ID: 42445 Comment by: artnorm at gmail dot com Reported by: jerome at rainstormconsulting dot com Summary: fopen url wrapper doesn't handle chunked encoding Status: Open Type: Feature/Change Request Package: Feature/Change Request Operating System: Any PHP Version: 5.2.3 Block user comment: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2007-08-27 14:46:13] 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"?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=42445&edit=1