Bug #68047 [Com]: the curl extension doesn't load using apache

From: Date: Fri, 21 Nov 2014 14:59:34 +0000
Subject: Bug #68047 [Com]: the curl extension doesn't load using apache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188728@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68047&edit=1 ID: 68047 Comment by: herb at bobbingwide dot com Reported by: leo020588 at gmail dot com Summary: the curl extension doesn't load using apache Status: Not a bug Type: Bug Package: cURL related Operating System: Windows 7 x64 PHP Version: 5.5.17 Block user comment: N Private report: N New Comment: I had exactly the same problem with 5.5.18 and initially used the same workaround - copy php_curl.dll from 5.5.16 into my c:\php\ext folder. But having read these comments, I realised that my problem was due to the fact that when my apache service was started c:\php wasn't in the PATH. It was loading some of the dependent DLLs from c:\apache24\bin (libeay32.dll and ssleay32.dll) but it could not find the new dll - libssh2.dll Curl was working fine in PHP CLI since c:\php was in my user defined path. Having added c:\php; to the end of the system's path the problem is resolved. Whether or not libeay32.dll and ssleay32.dll still need to be present in c:\apache24\bin is now questionable. Previous Comments: ------------------------------------------------------------------------ [2014-10-25 17:43:30] maba at mb-systemhaus dot net I would tend to disagree with the "not a bug" assessment. In the previous releases it was possible to start up PHP with all extensions that came packaged with the ZIP without setting up anything but extension_dir. The only extension that no longer works this way is php_curl? ------------------------------------------------------------------------ [2014-10-24 23:08:06] ab@php.net Ok, so this is an environment issue after all. In 5.5.17 the only thing changed was an upgrade to libcurl itself. That might have changed how the php_curl.dll was built and its size and also added a DLL dependency. However all the dep DLLs (except those from the CRT) are being delivered in the PHP zipball, so setting (or already having) the correct %path% should solve it. Cheers. ------------------------------------------------------------------------ [2014-10-22 20:43:10] maba at mb-systemhaus dot net Same here: ---------- clean 5.5.18 install used php.ini-development (which shouldn't change anything compared to prod) extension=php_curl.dll extension_dir=c:/..../ext (containing full pathname) ------------------------------------------------------------------------ [2014-10-16 23:17:27] momchilmg at gmail dot com PHP 5.5.16 is last version for me without problem with this extension. php_curl.dll in 5.5.16 is 496KB, but in 5.5.17/5.5.18 is only 403/401KB. ------------------------------------------------------------------------ [2014-10-13 20:20:11] leo020588 at gmail dot com deplister.exe shows everything ok. Adding the php folder to environment path solve the problem. I guess php-5.17 has new o different dlls compared to my system Win7x64SP1. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=68047 -- Edit this bug report at https://bugs.php.net/bug.php?id=68047&edit=1

« previous php.bugs (#188728) next »