ID: 8893
Updated by: sniper
Old-Status: Open
Status: Closed
Bug Type: cURL related
Assigned To: 

this is fixed in CVS already. Try latest CVS snapshot


Previous Comments:

[2001-01-24 21:19:53] [EMAIL PROTECTED]
#!/usr/local/bin/php -q
$co = curl_init();
curl_setopt($co, CURLOPT_URL, $url);
curl_setopt($co, CURLOPT_RETURNTRANSFER, 1);
$str = curl_exec($co);
print "[END]";
print "nReturned : ".$str."[END]n";

If $url is a page that prints out 0123456789 (no breaks and no n).  The following will 
be output :

Returned : 012345678[END]

Now if you turn CURLOPT_RETURNTRANSFER off (set to 0), you will get the following :

Returned : [END]

The returns are mutually exclusive (expected).  However, in the first example, the 9 
is missing.

Upon further examination, I found the following to be at fault :

ext/curl/curl.c line 653 :
ref_data[stat_sb.st_size - 1] = '

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to