CakeFest 2024: The Official CakePHP Conference

Installation

Die JSON-Erweiterung ist standardmäßig mit PHP gebündelt und kompiliert.

Ab PHP 8.0.0 ist die JSON-Erweiterung eine Kern-Erweiterung von PHP und somit immer aktiviert.

Information zur Installation dieser PECL-Erweiterung finden sie im Kapitel Installation von PECL-Erweiterungen. Zusätzliche Informationen wie neue Releases, Downloads, Quelldateien, Maintainerinformation und ein CHANGELOG finden Sie hier: » https://pecl.php.net/package/json

add a note

User Contributed Notes 6 notes

up
0
Anonymous
3 years ago
even though the manual says the json extension is enabled by default and compiled into the core, I had to do a "yum install php-json" on centos 8 running php 7.2
up
-2
ferenczy at NOSPAM dot volny dot cz
10 years ago
On Ubuntu 13.10 you have to install this extension first (PHP 5.5.3):

apt-get install php5-json

(Don't forget to restart web server.)
up
-2
YesCT
9 years ago
on CentOS php 5.5.13 had to:
yum install php55u-pecl-jsonc php55u-pecl-jsonc-devel
up
-11
dave at davidhbrown dot us
15 years ago
On one server I use (FreeBSD 6.3; PHP 5.2.6 as module in Apache 2.2.10), PHP was compiled with the '--disable-all' configuration option. Consequently, there exists a secondary configuration file -- /usr/local/php5/etc/extensions.ini -- in which the line

; extension=json.so

must be uncommented (delete the semicolon) and Apache restarted for these functions to be available.
up
-11
cko at audaxis dot com
13 years ago
On gentoo, need the USE flag "json" to compile into php
up
-21
haebler at gmail dot com
13 years ago
On RHEL5/CentOS5 add the EPEL repository (http://fedoraproject.org/wiki/EPEL).

After that, installation is as simple as:

sudo yum install php-pecl-json
To Top