php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48064 cURL slow execution time
Submitted: 2009-04-23 17:23 UTC Modified: 2009-04-23 17:55 UTC
From: dgod40 at gmail dot com Assigned:
Status: Not a bug Package: cURL related
PHP Version: 5.2.9 OS: Windows 2000 Pro sp4
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: dgod40 at gmail dot com
New email:
PHP Version: OS:

 

 [2009-04-23 17:23 UTC] dgod40 at gmail dot com
Description:
------------
I recently upgraded from php 5.2.6 to 5.2.9 and now when I run a php script from the command line cURL takes 3 seconds to run. On 5.2.6 it was instantaneous. php 5.2.8 was taking 10 seconds to run. fopen runs instantaneously so it is not a dns lookup issue. All other php scripts run instantaneously. As you can see for the expected result and the actual result php cURL takes a long time to start.

Expected result:
----------------
URL: http://www.google.com
--------------------------------

[Using CURL]
------------

start at 01:13:32 PM
Array
(
    [url] => http://www.google.ca
    [content_type] => text/html;
    [http_code] => 200
    [header_size] => 375
    [request_size] => 497
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 1
    [total_time] => 0.437
    [namelookup_time] => 0.047
    [connect_time] => 0.047
    [pretransfer_time] => 0.047
    [size_upload] => 0
    [size_download] => 6862
    [speed_download] => 15702
    [speed_upload] => 0
    [download_content_length] =>
    [upload_content_length] => -1
    [starttransfer_time] => 0.187
    [redirect_time] => 0.203
)
end at 01:13:32 PM
--------------------------------
[Using fopen]
-------------

start at 01:13:36 PM
Array
(
    [url] => http://www.google.co
    [http_code] => 200
)
end at 01:13:36 PM
--------------------------------

Actual result:
--------------
URL: http://www.google.com
--------------------------------

[Using CURL]
------------

start at 01:13:32 PM
Array
(
    [url] => http://www.google.ca
    [content_type] => text/html;
    [http_code] => 200
    [header_size] => 375
    [request_size] => 497
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 1
    [total_time] => 0.437
    [namelookup_time] => 0.047
    [connect_time] => 0.047
    [pretransfer_time] => 0.047
    [size_upload] => 0
    [size_download] => 6862
    [speed_download] => 15702
    [speed_upload] => 0
    [download_content_length] =>
    [upload_content_length] => -1
    [starttransfer_time] => 0.187
    [redirect_time] => 0.203
)
end at 01:13:36 PM
--------------------------------
[Using fopen]
-------------

start at 01:13:36 PM
Array
(
    [url] => http://www.google.co
    [http_code] => 200
)
end at 01:13:36 PM
--------------------------------

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-23 17:28 UTC] pajoye@php.net
Please a script and using localhost as test.
 [2009-04-23 17:54 UTC] dgod40 at gmail dot com
I am retracting the bug. I found out that if the cookie file is large it takes a while to read/write to it. I dont know if this is a bug or if is standard.
 [2009-04-23 17:55 UTC] pajoye@php.net
no bug :)
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Aug 06 02:01:24 2020 UTC