Bug #52474 [NEW]: CURL fails to load
From: donraman
Operating system: Windows
PHP version: 5.2.14
Package: cURL related
Bug Type: Bug
Bug description:CURL fails to load
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 bug report at http://bugs.php.net/bug.php?id=52474&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52474&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52474&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52474&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52474&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52474&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52474&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52474&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52474&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52474&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52474&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52474&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52474&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52474&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52474&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52474&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52474&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52474&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52474&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52474&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52474&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52474&r=mysqlcfg
Thread (12 messages)
- donraman@php.net
- pajoye@php.netBug #52474 [Opn->Bgs]: CURL fails to load
- donraman@php.netBug #52474 [Com]: CURL fails to load
- pajoye@php.netBug #52474 [Bgs]: CURL fails to load
- donraman@php.netBug #52474 [Com]: CURL fails to load
- donraman@php.netBug #52474 [Com]: CURL fails to load
- pajoye@php.netBug #52474 [Bgs]: CURL fails to load
- donraman@php.netBug #52474 [Com]: CURL fails to load
- donraman@php.netBug #52474 [Bgs->Opn]: CURL fails to load
- pajoye@php.netBug #52474 [Asn->Dup]: CURL fails to load
- donraman@php.netBug #52474 [Com]: CURL fails to load
- pajoye@php.netBug #52474 [Dup]: CURL fails to load