File manager - Edit - /home/theblueo/tv/fb4e3b/compat.tar
Back
loco-json.php 0000666 00000001245 15214212422 0007161 0 ustar 00 <?php /** * Polyfiller for missing PHP json extension. * Simply avoids fatal errors. Doesn't attempt to really replace the functionality */ function loco_compat_json_encode( $value ){ return '{"error":{"code":-1,"message":"json extension is not installed"}}'; } if( ! extension_loaded('json_encode') && WP_DEBUG && ( ! defined('DOING_AJAX') || ! DOING_AJAX ) ){ LocoAdmin::warning( sprintf( __('PHP extension "%s" is not installed. If you experience problems you should install it','loco-translate'), 'json_encode' ) ); } if( ! function_exists('json_encode') ){ function json_encode( $value = '' ){ return loco_compat_json_encode( $value ); } } loco-tokenizer.php 0000666 00000001124 15214212422 0010216 0 ustar 00 <?php /** * Polyfiller for missing PHP tokenizer extension. * Simply avoids fatal errors. Doesn't attempt to really replace the functionality */ function loco_compat_token_get_all(){ return array(); } if( ! extension_loaded('tokenizer') && WP_DEBUG && ( ! defined('DOING_AJAX') || ! DOING_AJAX ) ){ LocoAdmin::warning( sprintf( __('PHP extension "%s" is not installed. If you experience problems you should install it','loco-translate'), 'tokenizer' ) ); } if( ! function_exists('token_get_all') ){ function token_get_all(){ return loco_compat_token_get_all(); } } loco-iconv.php 0000666 00000001232 15214212422 0007322 0 ustar 00 <?php /** * Polyfiller for missing PHP iconv extension. * Simply avoids fatal errors. Doesn't attempt to really replace the functionality */ function loco_compat_iconv( $in_charset, $out_charset, $str ){ return $str; } if( ! extension_loaded('iconv') && WP_DEBUG && ( ! defined('DOING_AJAX') || ! DOING_AJAX ) ){ LocoAdmin::warning( sprintf( __('PHP extension "%s" is not installed. If you experience problems you should install it','loco-translate'), 'iconv' ) ); } if( ! function_exists('iconv') ){ function iconv( $in_charset = '', $out_charset = '', $str = '' ){ return loco_compat_iconv( $in_charset, $out_charset, $str ); } } loco-mbstring.php 0000666 00000001541 15214212422 0010034 0 ustar 00 <?php /** * Polyfiller for missing PHP mbstring extension. * Simply avoids fatal errors. Doesn't attempt to really replace the functionality */ function loco_compat_mb_detect_encoding( $str, array $encoding_list, $strict ){ return 'UTF-8'; } if( ! extension_loaded('mbstring') && WP_DEBUG && ( ! defined('DOING_AJAX') || ! DOING_AJAX ) ){ LocoAdmin::warning( sprintf( __('PHP extension "%s" is not installed. If you experience problems you should install it','loco-translate'), 'mbstring' ) ); } if( ! function_exists('mb_detect_encoding') ){ function mb_detect_encoding( $str = '', array $encoding_list = array(), $strict = false ){ return loco_compat_mb_detect_encoding( $str, $encoding_list, $strict ); } } if( ! function_exists('mb_list_encodings') ){ function mb_list_encodings(){ return array('none'); } } loco-php.php 0000666 00000000652 15214212422 0007000 0 ustar 00 <?php /** * Polyfiller for versions of PHP below 5.4. * Cannot fix use of [array,literals] but can fudge some built in classes and interfaces */ /** * < 5.4 */ if( ! interface_exists('JsonSerializable') ){ interface JsonSerializable { public function jsonSerialize(); } } /** * <= 5.0.5 */ if( ! interface_exists('Countable') ){ interface Countable { public function count(); } }
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings