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