function_exists('json_encode') returning false in php70 (cPanel)

This is strange.
I've setup cPanel with TuxCare's php70 packages and the server is unable to find the json_encode/decode functions.

Any ideas where to check?

Comments

  • Solved.

    I had to enable the extensions in /opt/alt/php70/etc/php.d/default.ini

    Fuck cPanel.

    Thanked by (1)Not_Oles
  • Why not upgrade to PHP 8.x while you are at it?

    I speak fluent sarcasm and broken logic. | I would agree with you, but thæn we’d both be wrong.

  • @somik said:
    Why not upgrade to PHP 8.x while you are at it?

    Not my code. And it's the worst code I've ever seen on a simple website.

Sign In or Register to comment.