![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/hessa.corals.io/wp-content/plugins/loco-translate/src/compat/ |
<?php /** * Placeholder for missing PHP "json" extension. * Just avoids fatal errors. Does not actually replace functionality. * * If this extension is missing no JavaScript will work in the plugin at all. */ abstract class Loco_compat_JsonExtension { public static function json_encode( $value ){ return '{"error":{"code":-1,"message":"json extension is not installed"}}'; } public static function json_decode( $json ){ return null; } } // @codeCoverageIgnoreStart if( ! function_exists('json_encode') ){ function json_encode( $value ){ return Loco_compat_JsonExtension::json_encode( $value ); } } if( ! function_exists('json_decode') ){ function json_decode( $json ){ return Loco_compat_JsonExtension::json_decode($json); } }