php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21581 CURL_EXEC CRASH WITH CURLOPT_FILE
Submitted: 2003-01-11 08:15 UTC Modified: 2003-01-14 09:54 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: patrick dot audemard at free dot fr Assigned:
Status: Closed Package: cURL related
PHP Version: 4.3.0 OS: WINDOWS 2000
Private report: No CVE-ID: None
 [2003-01-11 08:15 UTC] patrick dot audemard at free dot fr
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-11 09:22 UTC] patrick dot audemard at free dot fr
Modified to cURL related.
 [2003-01-14 09:46 UTC] patrick dot audemard at free dot fr
Snaps php4-win32-STABLE-200301140130.zip works fine !
 [2003-01-14 09:54 UTC] iliaa@php.net
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 11:04 UTC] patrick dot audemard at free dot fr
Thanks a lot !!!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 14:01:33 2024 UTC