By default the version of PHP set is 5.6.37.
When I try to change the version to 7.4.26, the process does not gets complete. I have set it up on digital ocean. tried with centos 7 and centos 8 stream. But same problem happens. Following is the log.
#define PHP_SODIUM_ZSTR_TRUNCATE(zs, len) do { ZSTR_LEN(zs) = (len); } while(0)
^
/usr/local/src/libsodium-2.0.23/libsodium.c:4160:5: note: in expansion of macro 'PHP_SODIUM_ZSTR_TRUNCATE'
PHP_SODIUM_ZSTR_TRUNCATE(msg, (size_t) msg_real_len);
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/src/libsodium-2.0.23/libsodium.c:4161:18: error: subscripted value is neither array nor pointer nor vector
ZSTR_VAL(msg)[msg_real_len] = 0;
^
make: *** [Makefile:181: libsodium.lo] Error 1
================================================================================
And if I redo the above step of setting php version to 7.4.26 by deselecting the modules "sodium" and "argon2", I get following in log file. And on dashboard, still default php is shown as 5.6.37.
tail -f /var/log/php-rebuild.log
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(
manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20131226/
Installing header files: /usr/local/include/php/