简体   繁体   中英

yaml xampp warning: Unable to load dynamic library 'C:\xampp\php\ext\php_yaml.dll'

I installed the recent versions of xampp for windows and yaml on my PC with windows 8.1 64bit.

The versions were

  • xampp-win32-7.0.9-1-VC14-installer.exe
  • php_yaml-2.0.0rc8-7.0-ts-vc14-x86.zip

I put the line of extension=php_yaml.dll to the end of php.ini file. I copied php_yaml.dll to C:/xampp/php/ext folder. I copied yaml.dll to C:/xampp/apache/bin folder.

phpinfo(); command displayed that yaml was enabled.

But bad warning still appeared on command prompt when typing php command:

$ php PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_yaml.dll' - The spec ified module could not be found. in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_yaml.dll' - The specified module could not be found. in Unknown on line 0

See it on screenshots:

在此处输入图像描述

在此处输入图像描述

How to fix it?

;C:\xampp\apache\bin添加到PATH Windows 环境变量。

I fixed mine by downloading the correct version of yaml. The yaml Version has to match the installed PHP version. Make sure that you match the thread-safe and non-thread-safe option with your PHP aswell.

How to check if your PHP is thread-safe

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM