Topic: JSON module in PHP 5.3.2

Hi,

I installed PHP 5.3.2 in my RedHat linux ES5 machine and tried to also install JSON.  I was able to install it through pecl install php-pear-json and compile it from source.  However, when I checked the php modules, I don't see JSON is listed, but see a warning message like the following:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/json.so' - /usr/lib/php/modules/json.so: undefined symbol: ZVAL_DELREF in Unknown on line 0

I saw a similar post to the same question, but I can't resolve the problem by reinstall php 5.3.2

Please help...

Thank you so very much

Harry

Re: JSON module in PHP 5.3.2

I don't understand what you are trying to do.

JSON is a native extension provided by PHP 5.3.x (in php-common)

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
# php -v
PHP 5.3.2 (cli) (built: Apr 27 2010 20:28:18) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
# php -m | grep json
json
# php -i | grep -i ^json
json
json support => enabled
json version => 1.2.1
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: JSON module in PHP 5.3.2

The reason I tried to install JSON was because when I do php -i | grep -i ^json
I get this:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/json.so' - /usr/lib/php/modules/json.so: undefined symbol: ZVAL_DELREF in Unknown on line 0

When I php -m, I don't see any JSON module listed.

When I tried to install a software that require JSON, it says its not exist.

Thanks

Harry

Re: JSON module in PHP 5.3.2

rpm --query --all php\*
rpm --verify --all php\*

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi