PHP Warning: 'C:\Program Files\Microsoft\jdk-11.0.16.8-hotspot\bin\VCRUNTIME140.dll' 14.15 is not compatible with this PHP build linked with 14.29 in Unknown on line 0
原因
一:php自私的不兼容声明
二:jdk自私的dll附件
三:
Netbeans的bug 因为不管正常的dll加载顺序,它都将环境继承给子进程,
所以优先加载已经安装的dll。
解决
方法(1)打开Netbeans就退出
(2)改正正常的系统环境变量PATH,让
C:\Windows;C:\Windows\System32;
先出现
(3)一般最新版本在C:\ Windows\System32 把
通用运行时放到jdk文件夹本身 错误用法 删除 C:\Program Files\Microsoft\jdk-11.0.16.8-hotspot\bin\VCRUNTIME140.dll
不必要 如果不想删除,复制 C :\Windows\System32\vcruntime140.dll 到 C:\Program Files\Microsoft\jdk-11.0.16.8-hotspot\bin