更新时间:2023-02-22 08:51:07
您收到OCI8扩展程序的启动错误,表明您使用的PHP版本不支持dll.您需要使用正确的选项之一-对于PHP 5.6.x-是其中一种:
You are getting startup errors for the OCI8 extension indicating that you are using an unsupported dll for your php version. You need to use the correct one, which - for PHP 5.6.x - is one of these:
您需要使用与您的体系结构(x86或x64),编译器(vc 9、11、14)和线程安全(ts)或非线程安全(nts)php版本相匹配的版本,例如如果您在x86上运行使用vc11编译的线程安全的PHP 5.6.24,则应使用
You need to take the one that matches your architecture (x86 or x64), compiler (vc 9, 11, 14) and thread-safe (ts) or non-thread-safe (nts) php version, e.g. if you are running a thread-safe PHP 5.6.24 compiled with vc11 on an x86, you'd use
php_oci8-2.0.8-5.6-ts-vc11-x86.zip
-------- ----- --- -- ---- --- ---
^ ^ ^ ^ ^ ^ ^
| | | | | | \_____ extension
| | | | | \_________ architecture
| | | | \______________ compiler
| | | \_________________ thread-safety mode
| | \_____________________ php version
| \___________________________ extension version
\____________________________________ extension name
如果没有与您的PHP匹配的下载文件,则说明该文件不存在,因此您需要自己进行编译.有关更多信息,请参见 http://windows.php.net
If there is no download matching your PHP, then it does not exist and you need to compile it yourself. More info at http://windows.php.net
附带说明:除上述内容外,您一次只能使用一个oci扩展名.您同时拥有了(php_oci8.dll和php_oci8_11g.dll).确保删除不需要的.
On a side note: in addition to the above, you can only use one oci extension at a time. You got both (php_oci8.dll and php_oci8_11g.dll). Make sure to remove the one you don't need.