Changeset 32990 for trunk/src/wp-includes/class-json.php
- Timestamp:
- 06/28/2015 03:26:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-json.php
r24587 r32990 141 141 * not have a toJSON method, otherwise an error will occur. 142 142 */ 143 function Services_JSON($use = 0)143 function __construct( $use = 0 ) 144 144 { 145 145 $this->use = $use; … … 148 148 $this->_mb_substr = function_exists('mb_substr'); 149 149 } 150 151 /** 152 * PHP4 constructor. 153 */ 154 public function Services_JSON( $use = 0 ) { 155 self::__construct( $use ); 156 } 150 157 // private - cache the mbstring lookup results.. 151 158 var $_mb_strlen = false; … … 911 918 class Services_JSON_Error extends PEAR_Error 912 919 { 913 function Services_JSON_Error($message = 'unknown error', $code = null,920 function __construct($message = 'unknown error', $code = null, 914 921 $mode = null, $options = null, $userinfo = null) 915 922 { 916 923 parent::PEAR_Error($message, $code, $mode, $options, $userinfo); 917 924 } 925 926 public function Services_JSON_Error($message = 'unknown error', $code = null, 927 $mode = null, $options = null, $userinfo = null) { 928 self::__construct($message = 'unknown error', $code = null, 929 $mode = null, $options = null, $userinfo = null); 930 } 918 931 } 919 932 … … 925 938 class Services_JSON_Error 926 939 { 927 function Services_JSON_Error($message = 'unknown error', $code = null, 928 $mode = null, $options = null, $userinfo = null) 940 /** 941 * PHP5 constructor. 942 */ 943 function __construct( $message = 'unknown error', $code = null, 944 $mode = null, $options = null, $userinfo = null ) 929 945 { 930 946 931 947 } 948 949 /** 950 * PHP4 constructor. 951 */ 952 public function Services_JSON_Error( $message = 'unknown error', $code = null, 953 $mode = null, $options = null, $userinfo = null ) { 954 self::__construct( $message, $code, $mode, $options, $userinfo ); 955 } 932 956 } 933 957
Note: See TracChangeset
for help on using the changeset viewer.