Bug #76888 [Nab]: PHP Startup: Unable to load dynamic library 'php_curl.dll'
| From: | masterwto at 163 dot com | Date: | Mon, 17 Sep 2018 13:17:18 +0000 |
| Subject: | Bug #76888 [Nab]: PHP Startup: Unable to load dynamic library 'php_curl.dll' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-217097@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76888&edit=1
ID: 76888
User updated by: masterwto at 163 dot com
Reported by: masterwto at 163 dot com
Summary: PHP Startup: Unable to load dynamic library
'php_curl.dll'
Status: Not a bug
Type: Bug
Package: cURL related
Operating System: Windows 7 64bit
PHP Version: 7.3.0RC1
Block user comment: N
Private report: N
New Comment:
1. The PHP7.3 root directory is on my PATH environment.
2. The PHP module is loaded into Apache, and PHP scripts can be executed correctly (no cURL
functions).
3. PHP 7.1 & 7.2 is working OK.
What dependency DLLs contained in the PHP ditribution is used by cURL?
Do I need to copy those files to Apache\bin dir?
Previous Comments:
------------------------------------------------------------------------
[2018-09-17 08:54:21] ab@php.net
Thanks for the report. The curl extension has several dependency DLL which are contained in the PHP
ditribution. Please ensure the PHP root dir is on the path, when the PHP module is being loaded into
Apache.
Note, the DBCS encoded error messages are a separate topic.
Thanks.
------------------------------------------------------------------------
[2018-09-16 13:33:47] masterwto at 163 dot com
Description:
------------
My Apache24 httpd.conf:
LoadModule php7_module "D:/Program Files/PHP7/php7apache2_4.dll"
PHPIniDir "D:/Program Files/PHP7"
My PHP7.3 php.ini:
; On windows:
extension_dir = "D:/Program Files/PHP7/ext"
extension=php_curl.dll
When Apache2.4 Windows service is started, I got the error:
PHP Warning: PHP Startup: Unable to load dynamic library 'php_curl.dll' (tried:
D:/Program Files/PHP7/ext\\php_curl.dll
(\xef\xbf\xbd\xd2\xb2\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xd6\xb8\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xc4\xa3\xef\xbf\xbd\xe9\xa1\xa3),
D:/Program Files/PHP7/ext\\php_php_curl.dll.dll
(\xef\xbf\xbd\xd2\xb2\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xd6\xb8\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xc4\xa3\xef\xbf\xbd\xe9\xa1\xa3))
in Unknown on line 0
[Sun Sep 16 20:59:25.428390 2018] [mpm_winnt:notice] [pid 2992:tid 508] AH00455: Apache/2.4.34
(Win64) PHP/7.3.0RC1 configured -- resuming normal operations
[Sun Sep 16 20:59:25.428390 2018] [mpm_winnt:notice] [pid 2992:tid 508] AH00456: Apache Lounge VC15
Server built: Aug 15 2018 11:38:51
[Sun Sep 16 20:59:25.428390 2018] [core:notice] [pid 2992:tid 508] AH00094: Command line:
'D:\\Program Files\\Apache24\\bin\\httpd.exe -d D:/Program Files/Apache24'
[Sun Sep 16 20:59:25.428390 2018] [mpm_winnt:notice] [pid 2992:tid 508] AH00418: Parent: Created
child process 6548
PHP Warning: PHP Startup: Unable to load dynamic library 'php_curl.dll' (tried:
D:/Program Files/PHP7/ext\\php_curl.dll
(\xef\xbf\xbd\xd2\xb2\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xd6\xb8\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xc4\xa3\xef\xbf\xbd\xe9\xa1\xa3),
D:/Program Files/PHP7/ext\\php_php_curl.dll.dll
(\xef\xbf\xbd\xd2\xb2\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xd6\xb8\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xc4\xa3\xef\xbf\xbd\xe9\xa1\xa3))
in Unknown on line 0
[Sun Sep 16 20:59:26.364392 2018] [mpm_winnt:notice] [pid 6548:tid 456] AH00354: Child: Starting 64
worker threads.
When I changed the php.ini file to:
extension=curl
I got error like this:
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: D:/Program
Files/PHP7/ext\\curl
(\xef\xbf\xbd\xd2\xb2\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xd6\xb8\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xc4\xa3\xef\xbf\xbd\xe9\xa1\xa3),
D:/Program Files/PHP7/ext\\php_curl.dll
(\xef\xbf\xbd\xd2\xb2\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xd6\xb8\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xc4\xa3\xef\xbf\xbd\xe9\xa1\xa3))
in Unknown on line 0
[Sun Sep 16 21:31:27.302425 2018] [mpm_winnt:notice] [pid 6800:tid 508] AH00455: Apache/2.4.34
(Win64) PHP/7.3.0RC1 configured -- resuming normal operations
[Sun Sep 16 21:31:27.302425 2018] [mpm_winnt:notice] [pid 6800:tid 508] AH00456: Apache Lounge VC15
Server built: Aug 15 2018 11:38:51
[Sun Sep 16 21:31:27.302425 2018] [core:notice] [pid 6800:tid 508] AH00094: Command line:
'D:\\Program Files\\Apache24\\bin\\httpd.exe -d D:/Program Files/Apache24'
[Sun Sep 16 21:31:27.302425 2018] [mpm_winnt:notice] [pid 6800:tid 508] AH00418: Parent: Created
child process 2524
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: D:/Program
Files/PHP7/ext\\curl
(\xef\xbf\xbd\xd2\xb2\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xd6\xb8\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xc4\xa3\xef\xbf\xbd\xe9\xa1\xa3),
D:/Program Files/PHP7/ext\\php_curl.dll
(\xef\xbf\xbd\xd2\xb2\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xd6\xb8\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xc4\xa3\xef\xbf\xbd\xe9\xa1\xa3))
in Unknown on line 0
[Sun Sep 16 21:31:27.879626 2018] [mpm_winnt:notice] [pid 2524:tid 456] AH00354: Child: Starting 64
worker threads.
Test script:
---------------
no need php file at all.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76888&edit=1