phpinfo states the authors of the extension, yet neither json_decode, nor json_encode work when run on Apache 2.4.
json_encode error:
json_encode working correct:
json_decode outputs the same generic "call to undefined function", and no - loading the extensions through php.ini or /usr/local/etc/php/ext-20-json.ini ofc does not make any difference.
Anyone else experiences this particular issue? Could it be some licensing issue?
json_encode error:
Code:
Hello world
Fatal error: Uncaught Error: Call to undefined function json_encode() in /usr/local/www/bleh/jsondecode3.php:9 Stack trace: #0 {main} thrown in /usr/local/www/bleh/jsondecode3.php on line 9
Code:
php jsondecode3.php
PHP Warning: Module 'json' already loaded in Unknown on line 0
Hello world{"name":"John","age":30,"city":"New York"}
json_decode outputs the same generic "call to undefined function", and no - loading the extensions through php.ini or /usr/local/etc/php/ext-20-json.ini ofc does not make any difference.
Anyone else experiences this particular issue? Could it be some licensing issue?