Home >Backend Development >PHP Tutorial >Solution to the problem that json_encode cannot be called after PHP5.5 is installed_PHP Tutorial

Solution to the problem that json_encode cannot be called after PHP5.5 is installed_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 10:43:31914browse

Friends who use PHP5.5 in Linux systems will find that json_encode cannot be called after installing and upgrading to PHP5.5. This is not a version problem but an error in our operation process. The solution is simple.

After installing php 5.5 through apt-get on ubuntu13.10, I installed drupal and an error occurred that json_encode could not be called. I was very puzzled. PHP has built-in json for a long time. Why is it like this now?

sudo aptget php5-json
The code is as follows
 代码如下 复制代码

sudo aptget php5-json

Copy code

It works normally after restarting apache! http://www.bkjia.com/PHPjc/633182.htmlwww.bkjia.comtrue
http: //www.bkjia.com/PHPjc/633182.html
TechArticle
Friends who use PHP5.5 in Linux systems will find that they cannot call after installing and upgrading to PHP5.5. json_encode problem, this is not a version problem but our operation process is wrong, the solution is...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn