json seem enable but cannot run json_encode

前端 未结 3 1425
生来不讨喜
生来不讨喜 2020-12-22 04:35

My PHP version is 5.1.6 I have install Json by follow the instructions:

# yum install php-devel
# yum install php-pear
# yum install gcc
# pear install json
         


        
3条回答
  •  离开以前
    2020-12-22 05:01

    Granted, this is an old topic, but maybe someone will stumble across this like I did in August 2015. I fixed this by changing the extensions folder path in php.ini. It was somehow set to "./" and not /usr/lib64/php/modules/

提交回复
热议问题