From:             procyonar at gmail dot com
Operating system: Windows 7
PHP version:      5.2.11
PHP Bug Type:     cURL related
Bug description:  curl extension slows down PHP

Description:
------------
This is possibly the same problem as described in
http://bugs.php.net/bug.php?id=50406 .  PHP 5.2.11, vanilla distribution
from php.net, without any relevant php.ini changes, slows dows to a crawl
on Windows 7 Ultimate whenever php_curl.dll extension is enabled.  It
happens both in cli and in apache2 versions.

Just running "php -v" (version output) takes about 5-6 seconds when curl
is enabled (and a CPU usage spike).  With curl disabled, it is near
instantaneous, as expected.  I haven't tested whether curl actually works. 
A similar delay occurs on .php page load, etc.

WRT bug 50406, I believe curl initialization code, however complicated it
might be, is not supposed to take 5 seconds all by itself.  I verified that
in PHP 5.3.0 on Windows XP and PHP 5.2.11 on Gentoo Linux, just to be
certain, and in both cases there was no delay.

Reproduce code:
---------------
php -v

Expected result:
----------------
<1 s execution time

Actual result:
--------------
5-6 s execution time.  A similar delay occurs whenever ANY PHP script, cli
or apache2, is ran.

-- 
Edit bug report at http://bugs.php.net/?id=50410&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50410&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50410&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50410&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50410&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50410&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50410&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50410&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50410&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50410&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50410&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50410&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50410&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50410&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50410&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50410&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50410&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50410&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50410&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50410&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50410&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50410&r=mysqlcfg

Reply via email to