Bug #78086 [Asn->Fbk]: Curl silently fails to load under mod_php

From: Date: Fri, 31 May 2019 18:16:01 +0000
Subject: Bug #78086 [Asn->Fbk]: Curl silently fails to load under mod_php
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221069@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78086&edit=1

 ID:                 78086
 Updated by:         cmb@php.net
 Reported by:        alvaro at demogracia dot com
 Summary:            Curl silently fails to load under mod_php
-Status:             Assigned
+Status:             Feedback
 Type:               Bug
 Package:            Apache2 related
 Operating System:   Windows 10
 PHP Version:        7.3.5
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Any news here?


Previous Comments:
------------------------------------------------------------------------
[2019-05-30 17:38:14] requinix@php.net

Apache (actually Windows) won't try to load libssh2 from the PHP directory because that's
not where it knows to look: it checks the location of the executable, system directories, and the
system or user PATH depending how the application is being run. And I don't know if a symlink
will work, assuming it's in one of those locations of course.

Put libssh2 in the Apache directory, in System32, or add PHP to the system PATH and restart.

------------------------------------------------------------------------
[2019-05-30 16:39:43] cmb@php.net

Also check that there's no "wrong" DLL loaded.

------------------------------------------------------------------------
[2019-05-30 08:51:49] alvaro at demogracia dot com

Yes, I have. I'm actually using a symlink (mklink command) so the path never changes, I hope
that's not an issue.

According to Process Monitor, "httpd.exe" is trying to load "libssh2.dll" from
all sort of locations except PHP directory:

- Apache's base and "bin" directory
- C:\Windows\System32\libssh2.dll
- C:\Windows\System\libssh2.dll
- C:\Windows\libssh2.dll
- Graphics Magick directory
- Oracle Instant Client directory
- C:\Srv\PHP\PEAR\libssh2.dll

... so it's obviously not taking PHP folder into consideration. It's weird because this
same set-up works fine for 7.0, 7.1 and 7.2. I'll check everything again *sigh*

------------------------------------------------------------------------
[2019-05-30 08:27:57] cmb@php.net

Likely the dependent DLLs (such as libssh2.dll) can't be found.
Did you add the PHP folder to your PATH[1]?

[1] <https://www.php.net/manual/en/curl.installation.php>

------------------------------------------------------------------------
[2019-05-30 08:08:34] alvaro at demogracia dot com

My excuses, I hadn't found the correct log file. I'm getting:

PHP Warning:  PHP Startup: Unable to load dynamic library 'curl' (tried: ext\\curl (No se
puede encontrar el m\xef\xbf\xbddulo especificado.), ext\\php_curl.dll (No se encontr\xef\xbf\xbd el
proceso especificado.)) in Unknown on line 0

------------------------------------------------------------------------


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=78086


--
Edit this bug report at https://bugs.php.net/bug.php?id=78086&edit=1


Thread (17 messages)

« previous php.bugs (#221069) next »