ID:               48064
 Updated by:       paj...@php.net
 Reported By:      dgod40 at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         cURL related
 Operating System: Windows 2000 Pro sp4
 PHP Version:      5.2.9
 New Comment:

Please a script and using localhost as test.


Previous Comments:
------------------------------------------------------------------------

[2009-04-23 17:23:23] 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
--------------------------------


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48064&edit=1

Reply via email to