JSON support for PHP???

Support/Development for PHP
redpaint
Forum Regular
Forum Regular
Posts: 101
Joined: Mon Oct 31, 2011 11:47 am
Location: UK

Re: JSON support for PHP???

Unread post by redpaint »

Hello breun,
rpm -Uvh --force php-common-5.3.8-2.el6.art.x86_64.rpm
service httpd reload
Seems to have done the trick. phpinfo() now reports:
json support enabled
json version 1.2.1
Strange thing is that PHP still seems to be compiled with "--disable-json", presumably I could only change that if I follow Mike's suggestion of "yum remove php" and then do a "yum install php"?

Many thanks!
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: JSON support for PHP???

Unread post by scott »

its not compiled with --disable-json. Don't trust phpinfo, it doesnt actually report the facts
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: JSON support for PHP???

Unread post by breun »

It's loaded as a separate module. Indeed, don't pay too much attention to those flags. It was working all along, you just happened to break it and fix it again. :)
Lemonbit Internet Dedicated Server Management
Post Reply