HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //opt/remi/php56/root/usr/share/doc/pecl/json/INSTALL
1/ Quick installation

Replace the ext/json tree in the php sources:

    tar xf php-5.#.#.tar.bz2
    tar xf jsonc-1.3.#.tgz
    rm -rf php-5.#.#/ext/json
    mv jsonc-1.3.# php-5.#.#/ext/json

build PHP as usual.


2/ PECL installation

You need to build PHP without json extension
using the --disable-json option, then build
jsonc as every pecl extension:

    tar xf jsonc-1.3.#.tgz
    cd jsonc-1.3.#
    $PHP_DIR/bin/phpize
    ./configure \
       --with-php-config=$PHP_DIR/bin/php-config
    make

You can also use the --with-libjson option to use the system
jsonc-c library instead of the bundled copy.


3/ TEST installation

If you need to build both extensions to easily switch from one
to the others, build PHP with json extension as shared
using --enable-json=shared.

Build the pecl jsonc extension with --with-jsonc option (the
module will be renamed to jsonc.so)

Both can be installed, but, only one can be enabled.