Cacti of NPC in the middle of a picture
PHP warning:php startup:unable to load Dynamic Library '/usr/lib64/php/modules/json.so '-/usr/lib64/php/modules/json.s o:undefined symbol:zval_delref in Unknown on line 0
The original is because no PHP contains JSON module error
PHP JSON module compilation error
Reference http://blog.csdn.net/xkjcf/article/details/8952867
My system is the CentOS 6.4 version, using the Yum method to install httpd and PHP. However, the PHP installation does not support JSON extensions and requires manual installation. In the execution of make test, all the test scenarios fail, even if the force installation successfully found that the JSON module could not start, there will be an unknown zval_delref symbol error, due to the PHP version.
warning:php startup:unable to load Dynamic Library '/home/json/json-1.2.1/modules/json.so '-/home/json/json-1.2.1/ modules/json.so:undefined symbol:zval_delref in Unknown on line 0
You need to add a sentence to the json_parser.c file.
#define ZVAL_DELREF z_delref_p
Install again from the new compilation ~
Phpize is required, so installing Php-devel,phpize provides a compilation environment for PHP extensions. TAR-XF json-1.2.1.tgzcd json-1.2.1phpize./configuremakemake Installecho "; Enable JSON Extension Module ">>/etc/php.d/json.iniecho" extension=json.so ">/etc/php.d/json.ini
Reference
#if (php_major_version = = 5 && php_minor_version >= 3) | | (php_major_version >= 6) #undef zval_refcount#undef zval_addref#undef zval_delref#define ZVAL_REFCOUNT Z_REFCOUNT_P #define ZVAL_ADDREF Z_addref_p#define Zval_delref z_delref_p#endif
Cacti and Nagios Some summary "two"