Changeset 54038
- Timestamp:
- 08/31/2022 01:39:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-json.php
r54037 r54038 127 127 * @var int 128 128 */ 129 public $use; 129 public $use; 130 131 // private - cache the mbstring lookup results.. 132 var $_mb_strlen = false; 133 var $_mb_substr = false; 134 var $_mb_convert_encoding = false; 130 135 131 136 /** … … 162 167 } 163 168 164 165 169 /** 170 * PHP4 constructor. 166 171 * 167 172 * @deprecated 5.3.0 Use __construct() instead. 168 173 * 169 174 * @see Services_JSON::__construct() 170 */ 171 public function Services_JSON( $use = 0 ) { 172 _deprecated_constructor( 'Services_JSON', '5.3.0', get_class( $this ) ); 173 self::__construct( $use ); 174 } 175 // private - cache the mbstring lookup results.. 176 var $_mb_strlen = false; 177 var $_mb_substr = false; 178 var $_mb_convert_encoding = false; 179 175 */ 176 public function Services_JSON( $use = 0 ) { 177 _deprecated_constructor( 'Services_JSON', '5.3.0', get_class( $this ) ); 178 self::__construct( $use ); 179 } 180 180 181 /** 181 182 * convert a string from one UTF-16 char to one UTF-8 char … … 981 982 class Services_JSON_Error extends PEAR_Error 982 983 { 983 984 985 986 987 984 /** 985 * PHP5 constructor. 986 * 987 * @deprecated 5.3.0 Use the PHP native JSON extension instead. 988 */ 988 989 function __construct($message = 'unknown error', $code = null, 989 990 $mode = null, $options = null, $userinfo = null) … … 994 995 } 995 996 996 997 998 999 1000 1001 1002 1003 997 /** 998 * PHP4 constructor. 999 * 1000 * @deprecated 5.3.0 Use __construct() instead. 1001 * 1002 * @see Services_JSON_Error::__construct() 1003 */ 1004 public function Services_JSON_Error($message = 'unknown error', $code = null, 1004 1005 $mode = null, $options = null, $userinfo = null) { 1005 1006 1007 1006 _deprecated_constructor( 'Services_JSON_Error', '5.3.0', get_class( $this ) ); 1007 self::__construct($message, $code, $mode, $options, $userinfo); 1008 } 1008 1009 } 1009 1010 … … 1015 1016 class Services_JSON_Error 1016 1017 { 1017 1018 1019 1020 1021 1018 /** 1019 * PHP5 constructor. 1020 * 1021 * @deprecated 5.3.0 Use the PHP native JSON extension instead. 1022 */ 1022 1023 function __construct( $message = 'unknown error', $code = null, 1023 1024 $mode = null, $options = null, $userinfo = null ) … … 1026 1027 } 1027 1028 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1029 /** 1030 * PHP4 constructor. 1031 * 1032 * @deprecated 5.3.0 Use __construct() instead. 1033 * 1034 * @see Services_JSON_Error::__construct() 1035 */ 1036 public function Services_JSON_Error( $message = 'unknown error', $code = null, 1037 $mode = null, $options = null, $userinfo = null ) { 1038 _deprecated_constructor( 'Services_JSON_Error', '5.3.0', get_class( $this ) ); 1039 self::__construct( $message, $code, $mode, $options, $userinfo ); 1040 } 1040 1041 } 1041 1042
Note: See TracChangeset
for help on using the changeset viewer.