We're running CentOS 6 and PHP 5.3.8 (as an apache module) which should have JSON as part of it's core (I'm told). Looking at # php -i
on the command line I can see under Configure Command '--enable-json=shared'
... great!
However, looking at php_info() on a web page Configure Command shows '--disable-json'
.
No problem I thought, I'll just install it using pecl:
# yum update php
# yum install php-pear
# yum install gcc
# pecl install json
# service httpd restart
Success, that aught to do it I thought. However php -m shows:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/json.so' - /usr/lib64/php/modules/json.so: undefined symbol: ZVAL_DELREF in Unknown on line 0
Apologies if this is a silly question but does anyone know what's going on here and could you point me in the right direction on how to fix this so that JSON starts working?
Many thanks