#8618 closed defect (bug) (fixed)
Chunked Decode not completely working
Reported by: | jacobsantos | Owned by: | jacobsantos |
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | normal | Version: | 2.7 |
Component: | HTTP API | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
Fixes several issues and ensures that a string is always returned.
Attachments (3)
Change History (16)
#9
@
16 years ago
re: } while ( true === $done );
why not just change that to while(true) and remove the $done and break, It'll probably only confuse someone in the future..
Well.. Actually, Wait a minute. That change results in the loop only running once, because $done will -never- be true in that loop, well.. it will be.. right before it exits the function.. So, If theres multiple chunks in the document (I swear thats possible, right?) it'll return null from that function now..
#10
@
16 years ago
Multiple Chunks? WTF? No, I don't think that is in the spec. There can be footer headers after the '0', but that is it.
Note: See
TracTickets for help on using
tickets.
Return string only and fix bug with loop.