1<?php 2 3/** @generate-class-entries */ 4 5/** 6 * @var int 7 * @cvalue PHP_JSON_HEX_TAG 8 */ 9const JSON_HEX_TAG = UNKNOWN; 10/** 11 * @var int 12 * @cvalue PHP_JSON_HEX_AMP 13 */ 14const JSON_HEX_AMP = UNKNOWN; 15/** 16 * @var int 17 * @cvalue PHP_JSON_HEX_APOS 18 */ 19const JSON_HEX_APOS = UNKNOWN; 20/** 21 * @var int 22 * @cvalue PHP_JSON_HEX_QUOT 23 */ 24const JSON_HEX_QUOT = UNKNOWN; 25/** 26 * @var int 27 * @cvalue PHP_JSON_FORCE_OBJECT 28 */ 29const JSON_FORCE_OBJECT = UNKNOWN; 30/** 31 * @var int 32 * @cvalue PHP_JSON_NUMERIC_CHECK 33 */ 34const JSON_NUMERIC_CHECK = UNKNOWN; 35/** 36 * @var int 37 * @cvalue PHP_JSON_UNESCAPED_SLASHES 38 */ 39const JSON_UNESCAPED_SLASHES = UNKNOWN; 40/** 41 * @var int 42 * @cvalue PHP_JSON_PRETTY_PRINT 43 */ 44const JSON_PRETTY_PRINT = UNKNOWN; 45/** 46 * @var int 47 * @cvalue PHP_JSON_UNESCAPED_UNICODE 48 */ 49const JSON_UNESCAPED_UNICODE = UNKNOWN; 50/** 51 * @var int 52 * @cvalue PHP_JSON_PARTIAL_OUTPUT_ON_ERROR 53 */ 54const JSON_PARTIAL_OUTPUT_ON_ERROR = UNKNOWN; 55/** 56 * @var int 57 * @cvalue PHP_JSON_PRESERVE_ZERO_FRACTION 58 */ 59const JSON_PRESERVE_ZERO_FRACTION = UNKNOWN; 60/** 61 * @var int 62 * @cvalue PHP_JSON_UNESCAPED_LINE_TERMINATORS 63 */ 64const JSON_UNESCAPED_LINE_TERMINATORS = UNKNOWN; 65 66/** 67 * @var int 68 * @cvalue PHP_JSON_OBJECT_AS_ARRAY 69 */ 70const JSON_OBJECT_AS_ARRAY = UNKNOWN; 71/** 72 * @var int 73 * @cvalue PHP_JSON_BIGINT_AS_STRING 74 */ 75const JSON_BIGINT_AS_STRING = UNKNOWN; 76 77/** 78 * @var int 79 * @cvalue PHP_JSON_INVALID_UTF8_IGNORE 80 */ 81const JSON_INVALID_UTF8_IGNORE = UNKNOWN; 82/** 83 * @var int 84 * @cvalue PHP_JSON_INVALID_UTF8_SUBSTITUTE 85 */ 86const JSON_INVALID_UTF8_SUBSTITUTE = UNKNOWN; 87/** 88 * @var int 89 * @cvalue PHP_JSON_THROW_ON_ERROR 90 */ 91const JSON_THROW_ON_ERROR = UNKNOWN; 92 93/** 94 * @var int 95 * @cvalue PHP_JSON_ERROR_NONE 96 */ 97const JSON_ERROR_NONE = UNKNOWN; 98/** 99 * @var int 100 * @cvalue PHP_JSON_ERROR_DEPTH 101 */ 102const JSON_ERROR_DEPTH = UNKNOWN; 103/** 104 * @var int 105 * @cvalue PHP_JSON_ERROR_STATE_MISMATCH 106 */ 107const JSON_ERROR_STATE_MISMATCH = UNKNOWN; 108/** 109 * @var int 110 * @cvalue PHP_JSON_ERROR_CTRL_CHAR 111 */ 112const JSON_ERROR_CTRL_CHAR = UNKNOWN; 113/** 114 * @var int 115 * @cvalue PHP_JSON_ERROR_SYNTAX 116 */ 117const JSON_ERROR_SYNTAX = UNKNOWN; 118/** 119 * @var int 120 * @cvalue PHP_JSON_ERROR_UTF8 121 */ 122const JSON_ERROR_UTF8 = UNKNOWN; 123/** 124 * @var int 125 * @cvalue PHP_JSON_ERROR_RECURSION 126 */ 127const JSON_ERROR_RECURSION = UNKNOWN; 128/** 129 * @var int 130 * @cvalue PHP_JSON_ERROR_INF_OR_NAN 131 */ 132const JSON_ERROR_INF_OR_NAN = UNKNOWN; 133/** 134 * @var int 135 * @cvalue PHP_JSON_ERROR_UNSUPPORTED_TYPE 136 */ 137const JSON_ERROR_UNSUPPORTED_TYPE = UNKNOWN; 138/** 139 * @var int 140 * @cvalue PHP_JSON_ERROR_INVALID_PROPERTY_NAME 141 */ 142const JSON_ERROR_INVALID_PROPERTY_NAME = UNKNOWN; 143/** 144 * @var int 145 * @cvalue PHP_JSON_ERROR_UTF16 146 */ 147const JSON_ERROR_UTF16 = UNKNOWN; 148/** 149 * @var int 150 * @cvalue PHP_JSON_ERROR_NON_BACKED_ENUM 151 */ 152const JSON_ERROR_NON_BACKED_ENUM = UNKNOWN; 153 154/** @refcount 1 */ 155function json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false {} 156 157function json_decode(string $json, ?bool $associative = null, int $depth = 512, int $flags = 0): mixed {} 158 159function json_last_error(): int {} 160 161/** @refcount 1 */ 162function json_last_error_msg(): string {} 163 164interface JsonSerializable 165{ 166 /** @tentative-return-type */ 167 public function jsonSerialize(): mixed; 168} 169 170class JsonException extends Exception 171{ 172} 173