Bug #78086 [ReO]: Curl silently fails to load under mod_php

From: Date: Fri, 21 Jun 2019 08:50:26 +0000
Subject: Bug #78086 [ReO]: Curl silently fails to load under mod_php
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221430@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: Re-Opened Type: Bug Package: Apache2 related Operating System: Windows 10 PHP Version: 7.3.6 -Assigned To: cmb +Assigned To: Block user comment: N Private report: N New Comment: Since I cannot reproduce this, and there don't seem to be (many) others having the same issue, I still guess there's a setup problem somewhere, but I have no ideas how to debug that further. Previous Comments: ------------------------------------------------------------------------ [2019-06-19 12:50:33] alvaro at demogracia dot com Array ( [0] => php7ts.dll,OK [1] => libcrypto-1_1-x64.dll,OK [2] => libssl-1_1-x64.dll,OK [3] => WLDAP32.dll,OK [4] => Normaliz.dll,OK [5] => libssh2.dll,OK [6] => nghttp2.dll,OK [7] => KERNEL32.dll,OK [8] => WS2_32.dll,OK [9] => VCRUNTIME140.dll,OK [10] => api-ms-win-crt-stdio-l1-1-0.dll,OK [11] => api-ms-win-crt-string-l1-1-0.dll,OK [12] => api-ms-win-crt-heap-l1-1-0.dll,OK [13] => api-ms-win-crt-convert-l1-1-0.dll,OK [14] => api-ms-win-crt-runtime-l1-1-0.dll,OK [15] => api-ms-win-crt-time-l1-1-0.dll,OK [16] => api-ms-win-crt-utility-l1-1-0.dll,OK [17] => api-ms-win-crt-filesystem-l1-1-0.dll,OK [18] => api-ms-win-crt-environment-l1-1-0.dll,OK ) ------------------------------------------------------------------------ [2019-06-19 11:54:40] cmb@php.net You can run the following script from Apache: <?php exec('"C:\\Opt\\PHP\\deplister" "C:\\Opt\\PHP\\ext\\php_curl.dll"', $output); print_r($output); All DLLs should be OK. ------------------------------------------------------------------------ [2019-06-19 11:01:21] alvaro at demogracia dot com With an absolute path: PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: C:\\Opt\\PHP\\ext\\curl (No se puede encontrar el m\xef\xbf\xbddulo especificado.), C:\\Opt\\PHP\\ext\\php_curl.dll (No se encontr\xef\xbf\xbd el proceso especificado.)) in Unknown on line 0 ------------------------------------------------------------------------ [2019-06-19 09:02:48] cmb@php.net Thanks for the feedback! Have you tried to use an absolute path for extension_dir? ------------------------------------------------------------------------ [2019-06-19 08:47:14] alvaro at demogracia dot com Sorry for the delay (a trip got in between). I've verified to the best of my ability that: - PHP directory belongs to PATH - Apache recognises such PATH - Apache finds and loads successfully the copy of libssh2.dll provided by PHP binaries (according to Process Monitor) ... yet Curl is still unavailable under Apache (though it loads fine in command-line): 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 I've also tried almost every 7.3.x release for Win64 and learnt that: - 7.3.0 and 7.3.2 work fine. - 7.3.3 to 7.3.6 fail. I mentioned I'm using symlinks—I've switched to regular directories just to be safe. I've restarted several times. Nothing changed. I'm totally clueless so far. Is there anything else you'd like me to try? ------------------------------------------------------------------------ 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

« previous php.bugs (#221430) next »