I think that possible culprit (as I have answered in email) is that you are loading json extension somewhere from the configuration file.
The JSON extension is compiled in the core for PHP 5.4, so you should not load it by hand.
Please check that you don’t have:
json.ini
somewhere in the/etc/php5/{mods-available}
left over from previous PHP 5.5 installationyou are not loading JSON extension from the mentioned script, e.g. no dl(
json.so
).Make sure you have stopped and started Apache2 (same applies to
php5-fpm
) when changing major versions. The symptoms might indicate that there was some stuck Apache2 thread with previous PHP from package loaded (that would be PHP 5.5 withjson-c
based JSON extension in this case).