|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53384 php_curl.dll doesn't loading on Apache started as a service
Submitted: 2010-11-23 08:16 UTC Modified: 2010-11-23 20:52 UTC
From: keryax at yandex dot ru Assigned:
Status: Not a bug Package: cURL related
PHP Version: 5.3.3 OS: Windows Server 2003
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: keryax at yandex dot ru
New email:
PHP Version: OS:


 [2010-11-23 08:16 UTC] keryax at yandex dot ru
PHP installed as a module to Apache 2.2.16. Apache running as a service. When service is starting, i see this warning message: "PHP Startup: Unable to load dynamic library 'C:/php/ext/php_curl.dll' - The specified module could not be found." File php_curl.dll exists. Another extenstions load successfully. I don't see this warning in console and this script returning 1: <?PHP echo function_exists("curl_init")?1:0; ?> 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-23 12:47 UTC]
-Status: Open +Status: Feedback
 [2010-11-23 12:47 UTC]
Please try using 5.3.4RC1
 [2010-11-23 14:43 UTC] keryax at yandex dot ru
-Status: Feedback +Status: Open
 [2010-11-23 14:43 UTC] keryax at yandex dot ru
RC1 doesn't loading cURL too :(
 [2010-11-23 15:54 UTC]
-Status: Open +Status: Feedback
 [2010-11-23 15:54 UTC]
Something is wrong in your setup then. It works just fine here, try from a cmd line:

C:\test\534rc1vc6x86ts>php -d extension_dir=ext -d extension=php_curl.dll -m

where C:\test\534rc1vc6x86ts contains the contents of the 5.3.4RC1 archive.
 [2010-11-23 18:55 UTC] keryax at yandex dot ru
-Status: Feedback +Status: Open
 [2010-11-23 18:55 UTC] keryax at yandex dot ru
PHP, runned in command line works fine. 
this command returned that curl is already loaded:
php -d extension_dir=ext -d extension=php_curl.dll -m
php.ini row extension_dir have full path in value: C:/php/ext
But curl cannot be loaded with apache2.
all another modules (such as gd2, mysql, mbstring etc.) are loading succesfully.
Downgrade to 5.3.1 helps me.
 [2010-11-23 20:52 UTC]
-Status: Open +Status: Bogus
 [2010-11-23 20:52 UTC]

 php -n -d extension_dir=ext -d extension=php_curl.dll -m

so no php.ini will be used.

what you said later confirms that this is a configuration issue. Double check phpinfo's extension_dir, which php.ini is loaded and that php directory is in your path, curl needs openssl DLLs.

Please contact php-setup or php-windows mailing lists for further support.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Apr 12 00:01:24 2021 UTC