ID: 48064 Updated by: paj...@php.net Reported By: dgod40 at gmail dot com -Status: Open +Status: Bogus Bug Type: cURL related Operating System: Windows 2000 Pro sp4 PHP Version: 5.2.9 New Comment:
no bug :) Previous Comments: ------------------------------------------------------------------------ [2009-04-23 17:54:36] 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:28:15] paj...@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