ID: 28392 Updated by: [EMAIL PROTECTED] Reported By: gabe at horizondatacom dot com -Status: Open +Status: Bogus Bug Type: cURL related Operating System: Windows 2000 PHP Version: 4.3.6 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. All of the processing is done by libcurl, not PHP in this case. Previous Comments: ------------------------------------------------------------------------ [2004-05-14 01:41:44] gabe at horizondatacom dot com Description: ------------ This little code snippet is used to connect to gatewaybeta.fedex.com to transfer XML documents back and forth. The problem we're having is that this segment will cause the php.exe in a windows 2000 multi-threaded enviroment to run at 99% to 100% for a short burst (rougly 4 to 5 seconds). Especially if the script runs at the same time, the server's resources are exhausted right away! :( We've definitly narrowed the execution time and CPU burst problem down to Curl but not sure how to go about fixing it. We've tried upgrading the libCurl library for PHP to the newer version 7.11.2 but there are no compiled DLL's for Windows servers. Any ideas? Our Config: stem Windows NT TESTCOT 5.0 build 2195 Build Date Apr 14 2004 17:17:11 Server API CGI/FastCGI Virtual Directory Support enabled PHP API 20020918 PHP Extension 20020429 Zend Extension 20021010 Debug Build no Thread Safety enabled Registered PHP Streams php, http, ftp, compress.zlib CURL Information libcurl/7.10.5 OpenSSL/0.9.7b zlib/1.1.4 Reproduce code: --------------- $this->ch = curl_init (); curl_setopt ($this->ch, CURLOPT_URL, "$this->postServ") curl_setopt ($this->ch, CURLOPT_RETURNTRANSFER,1); curl_setopt ($this->ch, CURLOPT_TIMEOUT, 10); curl_setopt ($this->ch, CURLOPT_CUSTOMREQUEST, $req); curl_setopt ($this->ch, CURLOPT_SSL_VERIFYPEER, 0); $result = curl_exec ($this->ch); $err_nr = curl_errno($this->ch); curl_close ($this->ch); Expected result: ---------------- The code executes properly, but CPU usage is at 99% to 100% for 4 to 5 seconds while CURL is executing. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28392&edit=1
