Page 2 of 2

Re: JSON support for PHP???

Posted: Thu Nov 03, 2011 3:45 pm
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!

Re: JSON support for PHP???

Posted: Thu Nov 03, 2011 4:51 pm
by scott
its not compiled with --disable-json. Don't trust phpinfo, it doesnt actually report the facts

Re: JSON support for PHP???

Posted: Thu Nov 03, 2011 4:57 pm
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. :)