|
1 | 1 | /* This is a generated file, edit the .stub.php file instead.
|
2 |
| - * Stub hash: bc49b326136997660887b12f0c59f8a57b17ecaf */ |
| 2 | + * Stub hash: 8593bcd9dd8350f84533b9592c3d6a2885e97d07 */ |
3 | 3 |
|
4 | 4 | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getMessage, 0, 0, IS_STRING, 0)
|
5 | 5 | ZEND_END_ARG_INFO()
|
@@ -179,3 +179,143 @@ static const zend_function_entry class_ArithmeticError_methods[] = {
|
179 | 179 | static const zend_function_entry class_DivisionByZeroError_methods[] = {
|
180 | 180 | ZEND_FE_END
|
181 | 181 | };
|
| 182 | + |
| 183 | + |
| 184 | +static const zend_function_entry class_UnhandledMatchError_methods[] = { |
| 185 | + ZEND_FE_END |
| 186 | +}; |
| 187 | + |
| 188 | +#define register_class_Throwable(class_entry, class_entry_Stringable) \ |
| 189 | +{ \ |
| 190 | + zend_class_entry ce; \ |
| 191 | + \ |
| 192 | + INIT_CLASS_ENTRY(ce, "Throwable", class_Throwable_methods); \ |
| 193 | + class_entry = zend_register_internal_interface(&ce); \ |
| 194 | +} |
| 195 | + |
| 196 | +#define register_class_Exception(class_entry, class_entry_Throwable) \ |
| 197 | +{ \ |
| 198 | + zend_class_entry ce; \ |
| 199 | + \ |
| 200 | + INIT_CLASS_ENTRY(ce, "Exception", class_Exception_methods); \ |
| 201 | + class_entry = zend_register_internal_class_ex(&ce, NULL); \ |
| 202 | + zend_class_implements(class_entry, 1, class_entry_Throwable); \ |
| 203 | +\ |
| 204 | + zend_declare_property_string(class_entry, "message", sizeof("message") - 1, "", ZEND_ACC_PROTECTED); \ |
| 205 | +\ |
| 206 | + zend_declare_property_string(class_entry, "string", sizeof("string") - 1, "", ZEND_ACC_PRIVATE); \ |
| 207 | +\ |
| 208 | + zend_declare_property_long(class_entry, "code", sizeof("code") - 1, 0, ZEND_ACC_PROTECTED); \ |
| 209 | +\ |
| 210 | + zend_declare_property_null(class_entry, "file", sizeof("file") - 1, ZEND_ACC_PROTECTED); \ |
| 211 | +\ |
| 212 | + zend_declare_property_null(class_entry, "line", sizeof("line") - 1, ZEND_ACC_PROTECTED); \ |
| 213 | +\ |
| 214 | + zval property_trace_default_value; \ |
| 215 | + ZVAL_EMPTY_ARRAY(&property_trace_default_value); \ |
| 216 | + zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_TRACE), &property_trace_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ARRAY)); \ |
| 217 | +\ |
| 218 | + zval property_previous_default_value; \ |
| 219 | + ZVAL_NULL(&property_previous_default_value); \ |
| 220 | + zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_PREVIOUS), &property_previous_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_CE(class_entry_Throwable, 1, 0)); \ |
| 221 | +} |
| 222 | + |
| 223 | +#define register_class_ErrorException(class_entry, class_entry_Exception) \ |
| 224 | +{ \ |
| 225 | + zend_class_entry ce; \ |
| 226 | + \ |
| 227 | + INIT_CLASS_ENTRY(ce, "ErrorException", class_ErrorException_methods); \ |
| 228 | + class_entry = zend_register_internal_class_ex(&ce, class_entry_Exception); \ |
| 229 | +} |
| 230 | + |
| 231 | +#define register_class_Error(class_entry, class_entry_Throwable) \ |
| 232 | +{ \ |
| 233 | + zend_class_entry ce; \ |
| 234 | + \ |
| 235 | + INIT_CLASS_ENTRY(ce, "Error", class_Error_methods); \ |
| 236 | + class_entry = zend_register_internal_class_ex(&ce, NULL); \ |
| 237 | + zend_class_implements(class_entry, 1, class_entry_Throwable); \ |
| 238 | +\ |
| 239 | + zend_declare_property_string(class_entry, "message", sizeof("message") - 1, "", ZEND_ACC_PROTECTED); \ |
| 240 | +\ |
| 241 | + zend_declare_property_string(class_entry, "string", sizeof("string") - 1, "", ZEND_ACC_PRIVATE); \ |
| 242 | +\ |
| 243 | + zend_declare_property_long(class_entry, "code", sizeof("code") - 1, 0, ZEND_ACC_PROTECTED); \ |
| 244 | +\ |
| 245 | + zend_declare_property_null(class_entry, "file", sizeof("file") - 1, ZEND_ACC_PROTECTED); \ |
| 246 | +\ |
| 247 | + zend_declare_property_null(class_entry, "line", sizeof("line") - 1, ZEND_ACC_PROTECTED); \ |
| 248 | +\ |
| 249 | + zval property_trace_default_value; \ |
| 250 | + ZVAL_EMPTY_ARRAY(&property_trace_default_value); \ |
| 251 | + zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_TRACE), &property_trace_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ARRAY)); \ |
| 252 | +\ |
| 253 | + zval property_previous_default_value; \ |
| 254 | + ZVAL_NULL(&property_previous_default_value); \ |
| 255 | + zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_PREVIOUS), &property_previous_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_CE(class_entry_Throwable, 1, 0)); \ |
| 256 | +} |
| 257 | + |
| 258 | +#define register_class_CompileError(class_entry, class_entry_Error) \ |
| 259 | +{ \ |
| 260 | + zend_class_entry ce; \ |
| 261 | + \ |
| 262 | + INIT_CLASS_ENTRY(ce, "CompileError", class_CompileError_methods); \ |
| 263 | + class_entry = zend_register_internal_class_ex(&ce, class_entry_Error); \ |
| 264 | +} |
| 265 | + |
| 266 | +#define register_class_ParseError(class_entry, class_entry_CompileError) \ |
| 267 | +{ \ |
| 268 | + zend_class_entry ce; \ |
| 269 | + \ |
| 270 | + INIT_CLASS_ENTRY(ce, "ParseError", class_ParseError_methods); \ |
| 271 | + class_entry = zend_register_internal_class_ex(&ce, class_entry_CompileError); \ |
| 272 | +} |
| 273 | + |
| 274 | +#define register_class_TypeError(class_entry, class_entry_Error) \ |
| 275 | +{ \ |
| 276 | + zend_class_entry ce; \ |
| 277 | + \ |
| 278 | + INIT_CLASS_ENTRY(ce, "TypeError", class_TypeError_methods); \ |
| 279 | + class_entry = zend_register_internal_class_ex(&ce, class_entry_Error); \ |
| 280 | +} |
| 281 | + |
| 282 | +#define register_class_ArgumentCountError(class_entry, class_entry_TypeError) \ |
| 283 | +{ \ |
| 284 | + zend_class_entry ce; \ |
| 285 | + \ |
| 286 | + INIT_CLASS_ENTRY(ce, "ArgumentCountError", class_ArgumentCountError_methods); \ |
| 287 | + class_entry = zend_register_internal_class_ex(&ce, class_entry_TypeError); \ |
| 288 | +} |
| 289 | + |
| 290 | +#define register_class_ValueError(class_entry, class_entry_Error) \ |
| 291 | +{ \ |
| 292 | + zend_class_entry ce; \ |
| 293 | + \ |
| 294 | + INIT_CLASS_ENTRY(ce, "ValueError", class_ValueError_methods); \ |
| 295 | + class_entry = zend_register_internal_class_ex(&ce, class_entry_Error); \ |
| 296 | +} |
| 297 | + |
| 298 | +#define register_class_ArithmeticError(class_entry, class_entry_Error) \ |
| 299 | +{ \ |
| 300 | + zend_class_entry ce; \ |
| 301 | + \ |
| 302 | + INIT_CLASS_ENTRY(ce, "ArithmeticError", class_ArithmeticError_methods); \ |
| 303 | + class_entry = zend_register_internal_class_ex(&ce, class_entry_Error); \ |
| 304 | +} |
| 305 | + |
| 306 | +#define register_class_DivisionByZeroError(class_entry, class_entry_ArithmeticError) \ |
| 307 | +{ \ |
| 308 | + zend_class_entry ce; \ |
| 309 | + \ |
| 310 | + INIT_CLASS_ENTRY(ce, "DivisionByZeroError", class_DivisionByZeroError_methods); \ |
| 311 | + class_entry = zend_register_internal_class_ex(&ce, class_entry_ArithmeticError); \ |
| 312 | +} |
| 313 | + |
| 314 | +#define register_class_UnhandledMatchError(class_entry, class_entry_Error) \ |
| 315 | +{ \ |
| 316 | + zend_class_entry ce; \ |
| 317 | + \ |
| 318 | + INIT_CLASS_ENTRY(ce, "UnhandledMatchError", class_UnhandledMatchError_methods); \ |
| 319 | + class_entry = zend_register_internal_class_ex(&ce, class_entry_Error); \ |
| 320 | +} |
| 321 | + |
0 commit comments