PHP Startup: Unable to load dynamic library. (tried:. This is a relatively common problem.
of course, only the case where the relevant extension is enabled in the guaranteed php.ini and the corresponding .dll file does exist in the load directory is discussed here.
I personally met "pdo_firebird"" and "pdo_oci".
D:\Tool\php\php-7.2.7-Win32-VC15-x64>php
Warning: PHP Startup: Unable to load dynamic library "pdo_firebird" (tried: D:\Tool\php\php-7.2.7-Win32-VC15-x64\ext\pdo_firebird (), D:\Tool\php\php-7.2.7-Win32-VC15-x64\ext\php_pdo_firebird.dll ()) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library "pdo_oci" (tried: D:\Tool\php\php-7.2.7-Win32-VC15-x64\ext\pdo_oci (), D:\Tool\php\php-7.2.7-Win32-VC15-x64\ext\php_pdo_oci.dll ()) in Unknown on line 0
yesterday there was no wrong report, but today I began to report it wrong. no, no, no. It"s no use reinstalling php.
the former can be solved by adding a fbclient.dll to the php home directory as described in
PHP Startup: Unable to load dynamic library php_pdo_firebird.dll: The Official Microsoft IIS Forums
.
actual testing does eliminate errors, but you only need to download the version of firebird.
corresponding to php, but the problem is that the fbclient.dll can work without this fbclient.dll in the home directory of php. So this is some kind of workaround remedy (it may even just prevent php from reporting an error).
as for the latter, according to
PHP unable to load dynamic library" php_pdo_oci.dll "- Stack Overflow
, you need to install Oracle Instant Client.
(Oracle official website requires registration to download. Registration is basically required. Unable to log in after successful registration, it took a long time for Synchronize to log in. ).
the actual measurement is valid. But exactly which of these components is needed is unknown.
other methods, such as adding the ext directory to the environment variable, have been tried and have no effect.
I would very much like to know:
1. How to really solve these two problems?
2. Do you have any practical experience on how to solve the problem of similar extension load failure?
3. What is the reason for this to happen?
Why are system .dll files or even runtime components missing?
(I have not visited dangerous websites from yesterday to today, and I have not found any other suspected poisoning except php error)
welcome your comments and ideas.