RE: [PEAR-DEV] patch to HTTP/Request.php for proper chunked content handling

From: Date: Fri, 08 Mar 2002 19:18:40 +0000
Subject: RE: [PEAR-DEV] patch to HTTP/Request.php for proper chunked content handling
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-4945@lists.php.net to get a copy of this message
> HTTP/Request.php does not stitch together received pieces of > chunked content > properly. Instead of moving from chunk to chunk in the response > body, it was > taking repeated substrings from the beginning of the body. Attached is a > patch that fixes this. It also removes the call to the pdd() debugging > function, which someone brought up in a previous message. No patch attached. :( > Because it uses substr() and strlen(), I'm not sure if this patch (or the > original code in HTTP/Request.php) is binary-safe (i.e. if there > are ASCII 0 > characters in the response body.) Does anyone have any thoughts > about that? substr() and strlen() are binary safe. -- Richard Heyes "If you have any trouble sounding condescending, find a Unix user to show you how it's done." - Scott Adams

« previous php.pear.dev (#4945) next »