stream_context_create + file_get_content doesn't retrieve full file
Bug #650779 reported by
abma
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
In Progress
|
High
|
Pratik Soni |
Bug Description
Binary package hint: php5
when running the example script, the xml-request is simple cut of at the end, it ends with:
</data>
<value><array
but server-side is ok, with the curl-wrapper the request succeds.
look answer.txt for the result (yes, it is complete!)
php --version
PHP 5.3.2-1ubuntu4.5 with Suhosin-Patch (cli) (built: Sep 17 2010 13:49:46)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Changed in php5 (Ubuntu): | |
assignee: | nobody → Pratik Soni (php-techie) |
Changed in php5 (Ubuntu): | |
status: | Confirmed → In Progress |
To post a comment you must log in.
I tried this on the latest version of PHP in Maverick (5.3.3-1ubuntu9), and I see the same truncation issue.
Also I tried doing the POST with the curl_xxx functions and the XML was complete.
Marking Triaged, as there is definitely enough here to get started on a fix.
Setting Importance to High, as this could potentially corrupt data and gives no indication of a problem other than incomplete data transfer.