[英]PHP Fatal error: Call to undefined function json_decode() in Xampp
I'm using Xampp to run a php file using Brackets. 我正在使用Xampp使用Brackets运行php文件。 I got this error: 我收到此错误:
PHP Fatal error: Call to undefined function json_decode() in Xampp PHP致命错误:调用Xampp中未定义的函数json_decode()
I don't know if this is related but I checked the php info file and there are no disabled files. 我不知道这是否相关,但是我检查了php信息文件,并且没有禁用的文件。 In the json section it says support enabled, json version 1.4.0. 在json部分中,它表示支持启用,json版本1.4.0。 In the ini file I searched for json but couldn't find anything. 在ini文件中,我搜索了json,但找不到任何东西。
How can I resolve this error? 如何解决此错误?
if you are on Ubuntu use the following command in command line shell 如果您在Ubuntu上,请在命令行shell中使用以下命令
sudo apt-get install php5-json
if you are on windows, edit php.ini and enable the json extension. 如果您使用的是Windows,请编辑php.ini并启用json扩展名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.