Edit report at http://bugs.php.net/bug.php?id=52474&edit=1
ID: 52474 Updated by: paj...@php.net Reported by: donra...@php.net Summary: CURL fails to load -Status: Open +Status: Bogus Type: Bug Package: cURL related Operating System: Windows PHP Version: 5.2.14 -Assigned To: +Assigned To: pajoye Block user comment: N New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. #52452 Previous Comments: ------------------------------------------------------------------------ [2010-07-28 19:52:44] donra...@php.net Description: ------------ I am using PHP5.2.14 NTS MSI on Windows 7. But I think Windows version doesn't matter. When I enable the PHP extension cURL from the MSI, it's not getting shown as enabled in a simple phpinfo() page. Running php-cgi.exe -v from command line gives me this error if extension cURL is enabled: --------------------------- php-cgi.exe - System Error --------------------------- The program can't start because zlib.dll is missing from your computer. Try reinstalling the program to fix this problem. --------------------------- OK --------------------------- I am not sure when this dependency was introduced or it was already present. I believe the MSI should have the dependent DLL too. Am I missing something? Test script: --------------- Part of php.ini: [PHP_CURL] extension=php_curl.dll Sample Code: <?php // create a new cURL resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "http://www.iis.net/"); curl_setopt($ch, CURLOPT_HEADER, 0); // grab URL and pass it to the browser curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); ?> Expected result: ---------------- proper execution of the script. Actual result: -------------- [28-Jul-2010 10:51:34] PHP Fatal error: Call to undefined function curl_init() in C:\inetpub\wwwroot\phptest\test.php on line 3 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52474&edit=1