X7ROOT File Manager
Current Path:
/home/gfecatvj/4abetter.us/wp-content/plugins/backuply/lib/Curl
home
/
gfecatvj
/
4abetter.us
/
wp-content
/
plugins
/
backuply
/
lib
/
Curl
/
📁
..
📄
ArrayUtil.php
(3.54 KB)
📄
CaseInsensitiveArray.php
(5.55 KB)
📄
Curl.php
(49.86 KB)
📄
Decoder.php
(897 B)
📄
Encoder.php
(681 B)
📄
MultiCurl.php
(29.41 KB)
📄
StringUtil.php
(1.63 KB)
📄
Url.php
(11.39 KB)
Editing: Encoder.php
<?php namespace Curl; class Encoder { /** * Encode JSON * * Wrap json_encode() to throw error when the value being encoded fails. * * @access public * @param $value * @param $options * @param $depth * * @return string * @throws \ErrorException */ public static function encodeJson() { $args = func_get_args(); $value = call_user_func_array('json_encode', $args); if (json_last_error() !== JSON_ERROR_NONE) { $error_message = 'json_encode error: ' . json_last_error_msg(); throw new \ErrorException($error_message); } return $value; } }
Upload File
Create Folder