Edit report at http://bugs.php.net/bug.php?id=42445&edit=1
ID: 42445 Updated by: paj...@php.net Reported by: jerome at rainstormconsulting dot com Summary: fopen url wrapper doesn't handle chunked encoding -Status: Open +Status: Feedback Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: Any PHP Version: 5.2.3 Block user comment: N New Comment: Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2010-08-08 15:52:17] 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. ------------------------------------------------------------------------ [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