#21654 [NEW]: BINARIES DOWNLOADED CORRUPTION
From: patrick.audemard@free.fr
Operating system: WINDOWS 2000 SP3
PHP version: 4CVS-2003-01-15 (stable)
PHP Bug Type: cURL related
Bug description: BINARIES DOWNLOADED CORRUPTION
WEB Server : Apache 2.0.42 with SSL enabled
PHP 4.3.1 CVS 2003-01-15-01-30
WINDOWS 2000 SP3
Browser IE6SP1
Script :
$ch = curl_init();
curl_setopt ($ch,CURLOPT_URL,$sitedownload.$_POST'fichier']);
curl_setopt ($ch, CURLOPT_HEADER,0);
curl_setopt ($ch,CURLOPT_PROXY,$proxy);
$fichiersigs = fopen ($_POST['fichier'], "w");
curl_setopt ($ch,CURLOPT_FILE,$fichiersigs);
$test = curl_exec ($ch);
curl_close ($ch);
If you configured PHP with Apache Module (php4apache2.dll) a binary
downloaded file (tested ZIP File) is corrupted. It seemed to convert LF to
CRLF but I'm not sure.
I tried without success :
curl_setopt ($ch,CURLOPT_CRLF,0);
If you configured PHP CGI, it works fine (I tested MD5).
I tested version 4.3.1 CVS 2003-01-14-01-30 and CVS 2003-01-15-01-30. I
think it's easy to reproduce.
Yours sincerely,
Patrick AUDEMARD
--
Edit bug report at http://bugs.php.net/?id=21654&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21654&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21654&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21654&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21654&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21654&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21654&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21654&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21654&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21654&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21654&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21654&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21654&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21654&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21654&r=gnused
Thread (3 messages)
- patrick dot audemard at free dot fr