#48064 [Fbk->Opn]: cURL slow execution time
| From: | dgod40 at gmail dot com | Date: | Thu, 23 Apr 2009 17:54:37 +0000 |
| Subject: | #48064 [Fbk->Opn]: cURL slow execution time | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136173@lists.php.net to get a copy of this message | ||
ID: 48064
User updated by: dgod40 at gmail dot com
Reported By: dgod40 at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: cURL related
Operating System: Windows 2000 Pro sp4
PHP Version: 5.2.9
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2009-04-23 17:28:15] pajoye@php.net
Please a script and using localhost as test.
------------------------------------------------------------------------
[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