[英]Missing php_yaml.dll file
I'm using XAMPP with PHP 5.5.27 PHP and Windows 10 (x64). 我将XAMPP与PHP 5.5.27 PHP和Windows 10(x64)结合使用。 I'm triyng to install the
YAML
extention. 我正在安装
YAML
扩展。 Link from other topic is dead so I dowloaded files version PHP 5.5, x64, TS and NTS. 来自其他主题的链接已死,因此我下载了PHP 5.5,x64,TS和NTS版本的文件。 I placed file
php_yaml.dll
into c:\\xampp\\php\\ext
and yaml.dll
files into c:\\xampp\\
. 我将文件
php_yaml.dll
放入c:\\xampp\\php\\ext
并将yaml.dll
文件放入c:\\xampp\\
。 Then I added entry extension=php_yaml.dll
just after extension=php_xsl.dll
(as last entry of Dynamic Extensions. At the end I restarted Apache. 然后,我添加的条目
extension=php_yaml.dll
刚过extension=php_xsl.dll
(如动态扩展的最后一个项目。最后我重新启动Apache的。
Result is: 结果是:
phpinfo() doesn't display info about YAML extention.
phpinfo()不显示有关YAML扩展的信息。
You want the Thread Safe(TS) version and as to 32/64bit it should match your XAMPP version rather than your OS version so if you have a 32bit XAMPP you need the 32bit php_yaml.dll Also you should only need to place it in the c:\\xampp\\php\\ext folder 您需要Thread Safe(TS)版本,并且对于32/64位,它应该与您的XAMPP版本而不是您的OS版本匹配,因此,如果您有32位XAMPP,则需要32位php_yaml.dll,并且也只需将其放在c:\\ xampp \\ php \\ ext文件夹
Also remember that there are 2 php.ini
files. 还请记住,有2个
php.ini
文件。 One in the c:\\xampp\\apache\\bin
folder that Apache uses and one in c:\\xampp\\php\\php.ini
, it is this one that controls PHP's config when being used from the CLI (Command Line Interface) So you also need to add the extension=php_yaml.dll
to this php.ini
file as well if you want command line PHP to load this extension. Apache使用的
c:\\xampp\\apache\\bin
文件夹中的一个,而c:\\xampp\\php\\php.ini
一个文件夹中的一个则是从CLI(命令行界面)使用时控制PHP的配置。如果您希望命令行PHP加载此扩展,还需要将extension=php_yaml.dll
添加到此php.ini
文件中。
To check which php.ini file is being loaded in the CLI do this from the command line 要检查CLI中正在加载哪个php.ini文件,请从命令行执行此操作
php -ini | more
Look for this entry 寻找这个项目
Loaded Configuration File => D:\wamp\bin\php\php5.6.15\php.ini
Check that yours says something sensible for your system 检查您的内容是否对系统有意义
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.