zend_exceptions_arginfo.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. /* This is a generated file, edit the .stub.php file instead.
  2. * Stub hash: 9d1c2027ebd14e621d9b5b79056ba7300a455be8 */
  3. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getMessage, 0, 0, IS_STRING, 0)
  4. ZEND_END_ARG_INFO()
  5. ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Throwable_getCode, 0, 0, 0)
  6. ZEND_END_ARG_INFO()
  7. #define arginfo_class_Throwable_getFile arginfo_class_Throwable_getMessage
  8. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getLine, 0, 0, IS_LONG, 0)
  9. ZEND_END_ARG_INFO()
  10. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getTrace, 0, 0, IS_ARRAY, 0)
  11. ZEND_END_ARG_INFO()
  12. ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Throwable_getPrevious, 0, 0, Throwable, 1)
  13. ZEND_END_ARG_INFO()
  14. #define arginfo_class_Throwable_getTraceAsString arginfo_class_Throwable_getMessage
  15. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Exception___clone, 0, 0, IS_VOID, 0)
  16. ZEND_END_ARG_INFO()
  17. ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Exception___construct, 0, 0, 0)
  18. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, message, IS_STRING, 0, "\"\"")
  19. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, code, IS_LONG, 0, "0")
  20. ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, previous, Throwable, 1, "null")
  21. ZEND_END_ARG_INFO()
  22. ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Exception___wakeup, 0, 0, IS_VOID, 0)
  23. ZEND_END_ARG_INFO()
  24. #define arginfo_class_Exception_getMessage arginfo_class_Throwable_getMessage
  25. #define arginfo_class_Exception_getCode arginfo_class_Throwable_getCode
  26. #define arginfo_class_Exception_getFile arginfo_class_Throwable_getMessage
  27. #define arginfo_class_Exception_getLine arginfo_class_Throwable_getLine
  28. #define arginfo_class_Exception_getTrace arginfo_class_Throwable_getTrace
  29. #define arginfo_class_Exception_getPrevious arginfo_class_Throwable_getPrevious
  30. #define arginfo_class_Exception_getTraceAsString arginfo_class_Throwable_getMessage
  31. #define arginfo_class_Exception___toString arginfo_class_Throwable_getMessage
  32. ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ErrorException___construct, 0, 0, 0)
  33. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, message, IS_STRING, 0, "\"\"")
  34. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, code, IS_LONG, 0, "0")
  35. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, severity, IS_LONG, 0, "E_ERROR")
  36. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null")
  37. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, line, IS_LONG, 1, "null")
  38. ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, previous, Throwable, 1, "null")
  39. ZEND_END_ARG_INFO()
  40. #define arginfo_class_ErrorException_getSeverity arginfo_class_Throwable_getLine
  41. #define arginfo_class_Error___clone arginfo_class_Exception___clone
  42. #define arginfo_class_Error___construct arginfo_class_Exception___construct
  43. #define arginfo_class_Error___wakeup arginfo_class_Exception___wakeup
  44. #define arginfo_class_Error_getMessage arginfo_class_Throwable_getMessage
  45. #define arginfo_class_Error_getCode arginfo_class_Throwable_getCode
  46. #define arginfo_class_Error_getFile arginfo_class_Throwable_getMessage
  47. #define arginfo_class_Error_getLine arginfo_class_Throwable_getLine
  48. #define arginfo_class_Error_getTrace arginfo_class_Throwable_getTrace
  49. #define arginfo_class_Error_getPrevious arginfo_class_Throwable_getPrevious
  50. #define arginfo_class_Error_getTraceAsString arginfo_class_Throwable_getMessage
  51. #define arginfo_class_Error___toString arginfo_class_Throwable_getMessage
  52. ZEND_METHOD(Exception, __clone);
  53. ZEND_METHOD(Exception, __construct);
  54. ZEND_METHOD(Exception, __wakeup);
  55. ZEND_METHOD(Exception, getMessage);
  56. ZEND_METHOD(Exception, getCode);
  57. ZEND_METHOD(Exception, getFile);
  58. ZEND_METHOD(Exception, getLine);
  59. ZEND_METHOD(Exception, getTrace);
  60. ZEND_METHOD(Exception, getPrevious);
  61. ZEND_METHOD(Exception, getTraceAsString);
  62. ZEND_METHOD(Exception, __toString);
  63. ZEND_METHOD(ErrorException, __construct);
  64. ZEND_METHOD(ErrorException, getSeverity);
  65. static const zend_function_entry class_Throwable_methods[] = {
  66. ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getMessage, arginfo_class_Throwable_getMessage, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
  67. ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getCode, arginfo_class_Throwable_getCode, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
  68. ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getFile, arginfo_class_Throwable_getFile, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
  69. ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getLine, arginfo_class_Throwable_getLine, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
  70. ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getTrace, arginfo_class_Throwable_getTrace, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
  71. ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getPrevious, arginfo_class_Throwable_getPrevious, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
  72. ZEND_ABSTRACT_ME_WITH_FLAGS(Throwable, getTraceAsString, arginfo_class_Throwable_getTraceAsString, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
  73. ZEND_FE_END
  74. };
  75. static const zend_function_entry class_Exception_methods[] = {
  76. ZEND_ME(Exception, __clone, arginfo_class_Exception___clone, ZEND_ACC_PRIVATE)
  77. ZEND_ME(Exception, __construct, arginfo_class_Exception___construct, ZEND_ACC_PUBLIC)
  78. ZEND_ME(Exception, __wakeup, arginfo_class_Exception___wakeup, ZEND_ACC_PUBLIC)
  79. ZEND_ME(Exception, getMessage, arginfo_class_Exception_getMessage, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  80. ZEND_ME(Exception, getCode, arginfo_class_Exception_getCode, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  81. ZEND_ME(Exception, getFile, arginfo_class_Exception_getFile, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  82. ZEND_ME(Exception, getLine, arginfo_class_Exception_getLine, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  83. ZEND_ME(Exception, getTrace, arginfo_class_Exception_getTrace, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  84. ZEND_ME(Exception, getPrevious, arginfo_class_Exception_getPrevious, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  85. ZEND_ME(Exception, getTraceAsString, arginfo_class_Exception_getTraceAsString, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  86. ZEND_ME(Exception, __toString, arginfo_class_Exception___toString, ZEND_ACC_PUBLIC)
  87. ZEND_FE_END
  88. };
  89. static const zend_function_entry class_ErrorException_methods[] = {
  90. ZEND_ME(ErrorException, __construct, arginfo_class_ErrorException___construct, ZEND_ACC_PUBLIC)
  91. ZEND_ME(ErrorException, getSeverity, arginfo_class_ErrorException_getSeverity, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  92. ZEND_FE_END
  93. };
  94. static const zend_function_entry class_Error_methods[] = {
  95. ZEND_MALIAS(Exception, __clone, __clone, arginfo_class_Error___clone, ZEND_ACC_PRIVATE)
  96. ZEND_MALIAS(Exception, __construct, __construct, arginfo_class_Error___construct, ZEND_ACC_PUBLIC)
  97. ZEND_MALIAS(Exception, __wakeup, __wakeup, arginfo_class_Error___wakeup, ZEND_ACC_PUBLIC)
  98. ZEND_MALIAS(Exception, getMessage, getMessage, arginfo_class_Error_getMessage, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  99. ZEND_MALIAS(Exception, getCode, getCode, arginfo_class_Error_getCode, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  100. ZEND_MALIAS(Exception, getFile, getFile, arginfo_class_Error_getFile, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  101. ZEND_MALIAS(Exception, getLine, getLine, arginfo_class_Error_getLine, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  102. ZEND_MALIAS(Exception, getTrace, getTrace, arginfo_class_Error_getTrace, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  103. ZEND_MALIAS(Exception, getPrevious, getPrevious, arginfo_class_Error_getPrevious, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  104. ZEND_MALIAS(Exception, getTraceAsString, getTraceAsString, arginfo_class_Error_getTraceAsString, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
  105. ZEND_MALIAS(Exception, __toString, __toString, arginfo_class_Error___toString, ZEND_ACC_PUBLIC)
  106. ZEND_FE_END
  107. };
  108. static const zend_function_entry class_CompileError_methods[] = {
  109. ZEND_FE_END
  110. };
  111. static const zend_function_entry class_ParseError_methods[] = {
  112. ZEND_FE_END
  113. };
  114. static const zend_function_entry class_TypeError_methods[] = {
  115. ZEND_FE_END
  116. };
  117. static const zend_function_entry class_ArgumentCountError_methods[] = {
  118. ZEND_FE_END
  119. };
  120. static const zend_function_entry class_ValueError_methods[] = {
  121. ZEND_FE_END
  122. };
  123. static const zend_function_entry class_ArithmeticError_methods[] = {
  124. ZEND_FE_END
  125. };
  126. static const zend_function_entry class_DivisionByZeroError_methods[] = {
  127. ZEND_FE_END
  128. };
  129. static const zend_function_entry class_UnhandledMatchError_methods[] = {
  130. ZEND_FE_END
  131. };
  132. static zend_class_entry *register_class_Throwable(zend_class_entry *class_entry_Stringable)
  133. {
  134. zend_class_entry ce, *class_entry;
  135. INIT_CLASS_ENTRY(ce, "Throwable", class_Throwable_methods);
  136. class_entry = zend_register_internal_interface(&ce);
  137. zend_class_implements(class_entry, 1, class_entry_Stringable);
  138. return class_entry;
  139. }
  140. static zend_class_entry *register_class_Exception(zend_class_entry *class_entry_Throwable)
  141. {
  142. zend_class_entry ce, *class_entry;
  143. INIT_CLASS_ENTRY(ce, "Exception", class_Exception_methods);
  144. class_entry = zend_register_internal_class_ex(&ce, NULL);
  145. zend_class_implements(class_entry, 1, class_entry_Throwable);
  146. zval property_message_default_value;
  147. ZVAL_EMPTY_STRING(&property_message_default_value);
  148. zend_string *property_message_name = zend_string_init("message", sizeof("message") - 1, 1);
  149. zend_declare_property_ex(class_entry, property_message_name, &property_message_default_value, ZEND_ACC_PROTECTED, NULL);
  150. zend_string_release(property_message_name);
  151. zval property_string_default_value;
  152. ZVAL_EMPTY_STRING(&property_string_default_value);
  153. zend_string *property_string_name = zend_string_init("string", sizeof("string") - 1, 1);
  154. zend_declare_typed_property(class_entry, property_string_name, &property_string_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
  155. zend_string_release(property_string_name);
  156. zval property_code_default_value;
  157. ZVAL_LONG(&property_code_default_value, 0);
  158. zend_string *property_code_name = zend_string_init("code", sizeof("code") - 1, 1);
  159. zend_declare_property_ex(class_entry, property_code_name, &property_code_default_value, ZEND_ACC_PROTECTED, NULL);
  160. zend_string_release(property_code_name);
  161. zval property_file_default_value;
  162. ZVAL_EMPTY_STRING(&property_file_default_value);
  163. zend_string *property_file_name = zend_string_init("file", sizeof("file") - 1, 1);
  164. zend_declare_typed_property(class_entry, property_file_name, &property_file_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
  165. zend_string_release(property_file_name);
  166. zval property_line_default_value;
  167. ZVAL_LONG(&property_line_default_value, 0);
  168. zend_string *property_line_name = zend_string_init("line", sizeof("line") - 1, 1);
  169. zend_declare_typed_property(class_entry, property_line_name, &property_line_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
  170. zend_string_release(property_line_name);
  171. zval property_trace_default_value;
  172. ZVAL_EMPTY_ARRAY(&property_trace_default_value);
  173. zend_string *property_trace_name = zend_string_init("trace", sizeof("trace") - 1, 1);
  174. zend_declare_typed_property(class_entry, property_trace_name, &property_trace_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ARRAY));
  175. zend_string_release(property_trace_name);
  176. zend_string *property_previous_class_Throwable = zend_string_init("Throwable", sizeof("Throwable")-1, 1);
  177. zval property_previous_default_value;
  178. ZVAL_NULL(&property_previous_default_value);
  179. zend_string *property_previous_name = zend_string_init("previous", sizeof("previous") - 1, 1);
  180. zend_declare_typed_property(class_entry, property_previous_name, &property_previous_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previous_class_Throwable, 0, MAY_BE_NULL));
  181. zend_string_release(property_previous_name);
  182. return class_entry;
  183. }
  184. static zend_class_entry *register_class_ErrorException(zend_class_entry *class_entry_Exception)
  185. {
  186. zend_class_entry ce, *class_entry;
  187. INIT_CLASS_ENTRY(ce, "ErrorException", class_ErrorException_methods);
  188. class_entry = zend_register_internal_class_ex(&ce, class_entry_Exception);
  189. return class_entry;
  190. }
  191. static zend_class_entry *register_class_Error(zend_class_entry *class_entry_Throwable)
  192. {
  193. zend_class_entry ce, *class_entry;
  194. INIT_CLASS_ENTRY(ce, "Error", class_Error_methods);
  195. class_entry = zend_register_internal_class_ex(&ce, NULL);
  196. zend_class_implements(class_entry, 1, class_entry_Throwable);
  197. zval property_message_default_value;
  198. ZVAL_EMPTY_STRING(&property_message_default_value);
  199. zend_string *property_message_name = zend_string_init("message", sizeof("message") - 1, 1);
  200. zend_declare_property_ex(class_entry, property_message_name, &property_message_default_value, ZEND_ACC_PROTECTED, NULL);
  201. zend_string_release(property_message_name);
  202. zval property_string_default_value;
  203. ZVAL_EMPTY_STRING(&property_string_default_value);
  204. zend_string *property_string_name = zend_string_init("string", sizeof("string") - 1, 1);
  205. zend_declare_typed_property(class_entry, property_string_name, &property_string_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
  206. zend_string_release(property_string_name);
  207. zval property_code_default_value;
  208. ZVAL_LONG(&property_code_default_value, 0);
  209. zend_string *property_code_name = zend_string_init("code", sizeof("code") - 1, 1);
  210. zend_declare_property_ex(class_entry, property_code_name, &property_code_default_value, ZEND_ACC_PROTECTED, NULL);
  211. zend_string_release(property_code_name);
  212. zval property_file_default_value;
  213. ZVAL_EMPTY_STRING(&property_file_default_value);
  214. zend_string *property_file_name = zend_string_init("file", sizeof("file") - 1, 1);
  215. zend_declare_typed_property(class_entry, property_file_name, &property_file_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
  216. zend_string_release(property_file_name);
  217. zval property_line_default_value;
  218. ZVAL_UNDEF(&property_line_default_value);
  219. zend_string *property_line_name = zend_string_init("line", sizeof("line") - 1, 1);
  220. zend_declare_typed_property(class_entry, property_line_name, &property_line_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
  221. zend_string_release(property_line_name);
  222. zval property_trace_default_value;
  223. ZVAL_EMPTY_ARRAY(&property_trace_default_value);
  224. zend_string *property_trace_name = zend_string_init("trace", sizeof("trace") - 1, 1);
  225. zend_declare_typed_property(class_entry, property_trace_name, &property_trace_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ARRAY));
  226. zend_string_release(property_trace_name);
  227. zend_string *property_previous_class_Throwable = zend_string_init("Throwable", sizeof("Throwable")-1, 1);
  228. zval property_previous_default_value;
  229. ZVAL_NULL(&property_previous_default_value);
  230. zend_string *property_previous_name = zend_string_init("previous", sizeof("previous") - 1, 1);
  231. zend_declare_typed_property(class_entry, property_previous_name, &property_previous_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previous_class_Throwable, 0, MAY_BE_NULL));
  232. zend_string_release(property_previous_name);
  233. return class_entry;
  234. }
  235. static zend_class_entry *register_class_CompileError(zend_class_entry *class_entry_Error)
  236. {
  237. zend_class_entry ce, *class_entry;
  238. INIT_CLASS_ENTRY(ce, "CompileError", class_CompileError_methods);
  239. class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
  240. return class_entry;
  241. }
  242. static zend_class_entry *register_class_ParseError(zend_class_entry *class_entry_CompileError)
  243. {
  244. zend_class_entry ce, *class_entry;
  245. INIT_CLASS_ENTRY(ce, "ParseError", class_ParseError_methods);
  246. class_entry = zend_register_internal_class_ex(&ce, class_entry_CompileError);
  247. return class_entry;
  248. }
  249. static zend_class_entry *register_class_TypeError(zend_class_entry *class_entry_Error)
  250. {
  251. zend_class_entry ce, *class_entry;
  252. INIT_CLASS_ENTRY(ce, "TypeError", class_TypeError_methods);
  253. class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
  254. return class_entry;
  255. }
  256. static zend_class_entry *register_class_ArgumentCountError(zend_class_entry *class_entry_TypeError)
  257. {
  258. zend_class_entry ce, *class_entry;
  259. INIT_CLASS_ENTRY(ce, "ArgumentCountError", class_ArgumentCountError_methods);
  260. class_entry = zend_register_internal_class_ex(&ce, class_entry_TypeError);
  261. return class_entry;
  262. }
  263. static zend_class_entry *register_class_ValueError(zend_class_entry *class_entry_Error)
  264. {
  265. zend_class_entry ce, *class_entry;
  266. INIT_CLASS_ENTRY(ce, "ValueError", class_ValueError_methods);
  267. class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
  268. return class_entry;
  269. }
  270. static zend_class_entry *register_class_ArithmeticError(zend_class_entry *class_entry_Error)
  271. {
  272. zend_class_entry ce, *class_entry;
  273. INIT_CLASS_ENTRY(ce, "ArithmeticError", class_ArithmeticError_methods);
  274. class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
  275. return class_entry;
  276. }
  277. static zend_class_entry *register_class_DivisionByZeroError(zend_class_entry *class_entry_ArithmeticError)
  278. {
  279. zend_class_entry ce, *class_entry;
  280. INIT_CLASS_ENTRY(ce, "DivisionByZeroError", class_DivisionByZeroError_methods);
  281. class_entry = zend_register_internal_class_ex(&ce, class_entry_ArithmeticError);
  282. return class_entry;
  283. }
  284. static zend_class_entry *register_class_UnhandledMatchError(zend_class_entry *class_entry_Error)
  285. {
  286. zend_class_entry ce, *class_entry;
  287. INIT_CLASS_ENTRY(ce, "UnhandledMatchError", class_UnhandledMatchError_methods);
  288. class_entry = zend_register_internal_class_ex(&ce, class_entry_Error);
  289. return class_entry;
  290. }