#21581 [NEW]: CURL_EXEC CRASH WITH CURLOPT_FILE
From: [EMAIL PROTECTED] Operating system: WINDOWS 2000 PHP version: 4.3.0 PHP Bug Type: Reproducible crash Bug description: CURL_EXEC CRASH WITH CURLOPT_FILE PHP 4.3.0 crash (php.exe or WEB server) when you use the example code in PHP Manual. This bug was reported in version 4.2.3 (ID : 19301 ). $ch = curl_init ("http://www.ebay.com";); $fp = fopen ("output/result.txt", "w"); curl_setopt ($ch, CURLOPT_FILE, $fp); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_exec ($ch); curl_close ($ch); fclose ($fp); It's very easy to reproduce. -- Edit bug report at http://bugs.php.net/?id=21581&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21581&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21581&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21581&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21581&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21581&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=21581&r=support Expected behavior: http://bugs.php.net/fix.php?id=21581&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=21581&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=21581&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21581&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21581&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21581&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21581&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=21581&r=gnused
#21581 [Opn]: CURL_EXEC CRASH WITH CURLOPT_FILE
ID: 21581 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open -Bug Type: Reproducible crash +Bug Type: cURL related Operating System: WINDOWS 2000 PHP Version: 4.3.0 New Comment: Modified to cURL related. Previous Comments: [2003-01-11 08:15:54] [EMAIL PROTECTED] PHP 4.3.0 crash (php.exe or WEB server) when you use the example code in PHP Manual. This bug was reported in version 4.2.3 (ID : 19301 ). $ch = curl_init ("http://www.ebay.com";); $fp = fopen ("output/result.txt", "w"); curl_setopt ($ch, CURLOPT_FILE, $fp); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_exec ($ch); curl_close ($ch); fclose ($fp); It's very easy to reproduce. -- Edit this bug report at http://bugs.php.net/?id=21581&edit=1
#21581 [Opn]: CURL_EXEC CRASH WITH CURLOPT_FILE
ID: 21581 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: cURL related Operating System: WINDOWS 2000 PHP Version: 4.3.0 New Comment: Snaps php4-win32-STABLE-200301140130.zip works fine ! Previous Comments: [2003-01-11 09:22:12] [EMAIL PROTECTED] Modified to cURL related. [2003-01-11 08:15:54] [EMAIL PROTECTED] PHP 4.3.0 crash (php.exe or WEB server) when you use the example code in PHP Manual. This bug was reported in version 4.2.3 (ID : 19301 ). $ch = curl_init ("http://www.ebay.com";); $fp = fopen ("output/result.txt", "w"); curl_setopt ($ch, CURLOPT_FILE, $fp); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_exec ($ch); curl_close ($ch); fclose ($fp); It's very easy to reproduce. -- Edit this bug report at http://bugs.php.net/?id=21581&edit=1
#21581 [Com]: CURL_EXEC CRASH WITH CURLOPT_FILE
ID: 21581 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: cURL related Operating System: WINDOWS 2000 PHP Version: 4.3.0 New Comment: Thanks a lot !!! Previous Comments: [2003-01-14 09:54:20] [EMAIL PROTECTED] This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. User reports that the latest snapshot works, closing. [2003-01-14 09:46:37] [EMAIL PROTECTED] Snaps php4-win32-STABLE-200301140130.zip works fine ! [2003-01-11 09:22:12] [EMAIL PROTECTED] Modified to cURL related. [2003-01-11 08:15:54] [EMAIL PROTECTED] PHP 4.3.0 crash (php.exe or WEB server) when you use the example code in PHP Manual. This bug was reported in version 4.2.3 (ID : 19301 ). $ch = curl_init ("http://www.ebay.com";); $fp = fopen ("output/result.txt", "w"); curl_setopt ($ch, CURLOPT_FILE, $fp); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_exec ($ch); curl_close ($ch); fclose ($fp); It's very easy to reproduce. -- Edit this bug report at http://bugs.php.net/?id=21581&edit=1
#21654 [NEW]: BINARIES DOWNLOADED CORRUPTION
From: [EMAIL PROTECTED] 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
#21654 [Com]: BINARIES DOWNLOADED CORRUPTION
ID: 21654 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: cURL related Operating System: WINDOWS 2000 SP3 PHP Version: 4CVS-2003-01-15 (stable) New Comment: I tested and it worked. Sorry, I checked but I forgot the "wb" in the fopen()... Yours sincerely, Patrick AUDEMARD Previous Comments: [2003-01-15 05:13:57] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php When using PHP on Windows platform it\'s generally necessary to specify binary mode at fopen() parameter in order to write out non-text data. But actually the data are always written as binary on CGI or CLI version of PHP binary unless you specify text mode that is represented as \"t\". This is a known exception. [2003-01-15 04:33:35] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=21654&edit=1