php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
25 + 19 = ?
Subscribe to this entry?

 
 [2010-11-23 08:16 UTC] keryax at yandex dot ru
Description:
------------
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; ?> 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-23 12:47 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-11-23 12:47 UTC] pajoye@php.net
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] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-11-23 15:54 UTC] pajoye@php.net
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] pajoye@php.net
-Status: Open +Status: Bogus
 [2010-11-23 20:52 UTC] pajoye@php.net
Try:

 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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 17:01:30 2024 UTC