#48064 [NEW]: cURL slow execution time
| From: | dgod40 at gmail dot com | Date: | Thu, 23 Apr 2009 17:23:23 +0000 |
| Subject: | #48064 [NEW]: cURL slow execution time | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-136169@lists.php.net to get a copy of this message | ||
From: dgod40 at gmail dot com
Operating system: Windows 2000 Pro sp4
PHP version: 5.2.9
PHP Bug Type: cURL related
Bug description: cURL slow execution time
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 bug report at http://bugs.php.net/?id=48064&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48064&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48064&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48064&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48064&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48064&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48064&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48064&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48064&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48064&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48064&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48064&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48064&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48064&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48064&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48064&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48064&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48064&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48064&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48064&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48064&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48064&r=mysqlcfg