我試圖讓 PHP 7.4.1(NTS x64,Zip 版本)在我的 Windows 開發機器上運行,但我在 PhpStorm 的運行窗口中得到以下輸出:C:\path_to_php\php.exe -S localhost:80 -t C:\path_to_my_project\www[Tue Dec 31 15:42:39 2019] PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0Process finished with exit code 1我對這個問題進行了一些研究,發現這個現有問題建議安裝最新的 Microsoft Visual C++ Redistributable for Visual Studio 2019 在這里找到。我安裝了最新的 x64 版本并重新啟動計算機,但無濟于事,我仍然收到完全相同的錯誤消息。我也嘗試再次運行安裝程序并進行了修復+重啟,但這也沒有幫助。在命令行中運行php -i完美無缺,并顯示 PHP 7.4.1 的配置信息,這是我試圖在 PhpStorm 中運行的同一個 PHP 實例。PHP 7.4 也會出現同樣的問題,但 PHP 7.3 的工作原理就像一個魅力。我不知所措。有沒有人遇到過同樣的問題,并找到了解決方案?
'vcruntime140.dll' 14.0 與鏈接到 14.16 的 PHP 版本不兼容
慕田峪4524236
2022-07-09 10:08:45