ID: 50406 Updated by: scott...@php.net Reported By: matthew at crasxit dot net -Status: Open +Status: Bogus Bug Type: cURL related Operating System: Windows 2008 PHP Version: 5.3.1 New Comment:
There is a lot of initialisation code within the curl module that needs to be run when PHP is started. It's a one time cost when using fastcgi / apache but with CLI you get it on every script executed. Previous Comments: ------------------------------------------------------------------------ [2009-12-08 04:07:51] matthew at crasxit dot net Description: ------------ I'm having an issue with curl on windows with php. If i have curl enabled in php and i run php through command line i get an instant cpu spike... php.exe cpu jumps to about 20% then back down. when i disable curl it only jumps to about 2% it does this on non curl scripts. even if i run a blank php file or php -i it jumps to 20... however httpd.exe using apache2_2.dll seems to be fine (~2%) extensions loaded: curl (problem with curl, fine without) gd2 mbstring mysql mysqli openssl Reproduce code: --------------- any code ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50406&edit=1