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?

    If you want information, feign ignorance reply with the wrong answer. Internet people will correct you ASAP!
    It’s OK if you disagree with me. I can’t force you to be right!

  • @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.