简体   繁体   English

PHP致命错误:调用Xampp中未定义的函数json_decode()

[英]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.

相关问题 PHP致命错误:调用Cpanel上未定义的函数json_decode() - PHP Fatal error: Call to undefined function json_decode() on Cpanel PHP 致命错误:调用未定义 function json_decode() - PHP Fatal error: Call to undefined function json_decode() PHP致命错误:仅在eclipse中调用未定义的函数json_decode() - PHP Fatal error: Call to undefined function json_decode() ONLY in eclipse $ phpbrew known PHP Fatal error: Call to undefined function PhpBrew\\json_decode() in phar:///usr/bin/phpbrew/src/PhpBrew/ReleaseList.php on line 49 - $ phpbrew known PHP Fatal error: Call to undefined function PhpBrew\json_decode() in phar:///usr/bin/phpbrew/src/PhpBrew/ReleaseList.php on line 49 未捕获的错误:调用未定义函数Composer \\ Console \\ json_decode() - Uncaught Error: Call to undefined function Composer\Console\json_decode() 调用未定义的 function json_decode() - Call to undefined function json_decode() 如何解决PHP中的“调用未定义函数Composer \\ Json \\ json_decode()”? - How to resolve “Call to undefined function Composer\Json\json_decode()” in PHP? 可捕获的致命错误:json_decode中 - Catchable fatal error: in json_decode json_decode在web服务调用的PHP中给出错误 - json_decode giving error in php for webservice call json_decode忽略XAMPP(php 5.4.7)下的options参数 - json_decode ignores options parameter under XAMPP (php 5.4.7)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM