php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17036 curl hangs up in PHP ver 4.2.0
Submitted: 2002-05-06 07:14 UTC Modified: 2002-07-10 23:37 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: drnix at aha dot ru Assigned:
Status: Closed Package: cURL related
PHP Version: 4.2.0 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: drnix at aha dot ru
New email:
PHP Version: OS:

 

 [2002-05-06 07:14 UTC] drnix at aha dot ru
$ch = curl_init ();
$fname = tempnam ("C:\\tmp", "rbc");
$fp = fopen ($fname, "w");
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_PROXY, "proxy:8080");
curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_MUTE, 1);
$result = curl_exec ($ch);
curl_close ($ch);

it's worked in PHP v4.0.6, 4.1.2 but not work in v4.2.0
No error messages output. Simple hangs up.

Php installed from win32-binnary package

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-22 05:30 UTC] edink@php.net
Does this happen in 4.2.1 release?
 [2002-05-22 06:33 UTC] drnix at aha dot ru
i did try this in 4.2.1 release today. Is not work too.
Server reply:
CGI Timeout
The specified CGI application exceeded the allowed time for processing. The server has deleted the process.
 [2002-06-23 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-06-24 04:23 UTC] sniper@php.net
Does it happen with this snapshot:

http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-06-24 10:50 UTC] drnix at aha dot ru
not work too...
4.1.2 latest working release
 [2002-06-24 11:24 UTC] sniper@php.net
I can't reproduce this with latest CVS on Linux.
Try leaving that CURLOPT_PROXY line out..

What libcurl version is it using? (check phpinfo() output)
And did you install the new version correctly, ie. you have only one php4ts.dll in your system and it's from the same
package as the other dlls are ? And did you also update the
extensions from same package?

 [2002-06-25 03:03 UTC] drnix at aha dot ru
PHP was is installed correctly.
Working set: PHP 4.1.2, libcurl 7.9 (OpenSSL 0.9.6a)
Not working: PHP ver > 4.1.2, libcurl 7.9 (OpenSSL 0.9.6b)
Any dll & extention from the same PHP package.

I have verified many combinations. The problem consists at assignment of output in the file:
curl_setopt ($ch, CURLOPT_FILE, $fp);
Without this, STDOUT works correctly.
 [2002-07-10 23:37 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version 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.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 10:01:31 2024 UTC