xref: /PHP-8.1/ext/curl/curl_file_arginfo.h (revision 2378f357)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 0d09bd2f3b0a155cef25ca343319ecf470424d71 */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_CURLFile___construct, 0, 0, 1)
5 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
6 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mime_type, IS_STRING, 1, "null")
7 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, posted_filename, IS_STRING, 1, "null")
8 ZEND_END_ARG_INFO()
9 
10 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_CURLFile_getFilename, 0, 0, IS_STRING, 0)
11 ZEND_END_ARG_INFO()
12 
13 #define arginfo_class_CURLFile_getMimeType arginfo_class_CURLFile_getFilename
14 
15 #define arginfo_class_CURLFile_getPostFilename arginfo_class_CURLFile_getFilename
16 
17 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_CURLFile_setMimeType, 0, 1, IS_VOID, 0)
18 	ZEND_ARG_TYPE_INFO(0, mime_type, IS_STRING, 0)
19 ZEND_END_ARG_INFO()
20 
21 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_CURLFile_setPostFilename, 0, 1, IS_VOID, 0)
22 	ZEND_ARG_TYPE_INFO(0, posted_filename, IS_STRING, 0)
23 ZEND_END_ARG_INFO()
24 
25 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_CURLStringFile___construct, 0, 0, 2)
26 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
27 	ZEND_ARG_TYPE_INFO(0, postname, IS_STRING, 0)
28 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mime, IS_STRING, 0, "\"application/octet-stream\"")
29 ZEND_END_ARG_INFO()
30 
31 
32 ZEND_METHOD(CURLFile, __construct);
33 ZEND_METHOD(CURLFile, getFilename);
34 ZEND_METHOD(CURLFile, getMimeType);
35 ZEND_METHOD(CURLFile, getPostFilename);
36 ZEND_METHOD(CURLFile, setMimeType);
37 ZEND_METHOD(CURLFile, setPostFilename);
38 ZEND_METHOD(CURLStringFile, __construct);
39 
40 
41 static const zend_function_entry class_CURLFile_methods[] = {
42 	ZEND_ME(CURLFile, __construct, arginfo_class_CURLFile___construct, ZEND_ACC_PUBLIC)
43 	ZEND_ME(CURLFile, getFilename, arginfo_class_CURLFile_getFilename, ZEND_ACC_PUBLIC)
44 	ZEND_ME(CURLFile, getMimeType, arginfo_class_CURLFile_getMimeType, ZEND_ACC_PUBLIC)
45 	ZEND_ME(CURLFile, getPostFilename, arginfo_class_CURLFile_getPostFilename, ZEND_ACC_PUBLIC)
46 	ZEND_ME(CURLFile, setMimeType, arginfo_class_CURLFile_setMimeType, ZEND_ACC_PUBLIC)
47 	ZEND_ME(CURLFile, setPostFilename, arginfo_class_CURLFile_setPostFilename, ZEND_ACC_PUBLIC)
48 	ZEND_FE_END
49 };
50 
51 
52 static const zend_function_entry class_CURLStringFile_methods[] = {
53 	ZEND_ME(CURLStringFile, __construct, arginfo_class_CURLStringFile___construct, ZEND_ACC_PUBLIC)
54 	ZEND_FE_END
55 };
56 
register_class_CURLFile(void)57 static zend_class_entry *register_class_CURLFile(void)
58 {
59 	zend_class_entry ce, *class_entry;
60 
61 	INIT_CLASS_ENTRY(ce, "CURLFile", class_CURLFile_methods);
62 	class_entry = zend_register_internal_class_ex(&ce, NULL);
63 	class_entry->ce_flags |= ZEND_ACC_NOT_SERIALIZABLE;
64 
65 	zval property_name_default_value;
66 	ZVAL_EMPTY_STRING(&property_name_default_value);
67 	zend_string *property_name_name = zend_string_init("name", sizeof("name") - 1, 1);
68 	zend_declare_typed_property(class_entry, property_name_name, &property_name_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
69 	zend_string_release(property_name_name);
70 
71 	zval property_mime_default_value;
72 	ZVAL_EMPTY_STRING(&property_mime_default_value);
73 	zend_string *property_mime_name = zend_string_init("mime", sizeof("mime") - 1, 1);
74 	zend_declare_typed_property(class_entry, property_mime_name, &property_mime_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
75 	zend_string_release(property_mime_name);
76 
77 	zval property_postname_default_value;
78 	ZVAL_EMPTY_STRING(&property_postname_default_value);
79 	zend_string *property_postname_name = zend_string_init("postname", sizeof("postname") - 1, 1);
80 	zend_declare_typed_property(class_entry, property_postname_name, &property_postname_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
81 	zend_string_release(property_postname_name);
82 
83 	return class_entry;
84 }
85 
register_class_CURLStringFile(void)86 static zend_class_entry *register_class_CURLStringFile(void)
87 {
88 	zend_class_entry ce, *class_entry;
89 
90 	INIT_CLASS_ENTRY(ce, "CURLStringFile", class_CURLStringFile_methods);
91 	class_entry = zend_register_internal_class_ex(&ce, NULL);
92 
93 	zval property_data_default_value;
94 	ZVAL_UNDEF(&property_data_default_value);
95 	zend_string *property_data_name = zend_string_init("data", sizeof("data") - 1, 1);
96 	zend_declare_typed_property(class_entry, property_data_name, &property_data_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
97 	zend_string_release(property_data_name);
98 
99 	zval property_postname_default_value;
100 	ZVAL_UNDEF(&property_postname_default_value);
101 	zend_string *property_postname_name = zend_string_init("postname", sizeof("postname") - 1, 1);
102 	zend_declare_typed_property(class_entry, property_postname_name, &property_postname_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
103 	zend_string_release(property_postname_name);
104 
105 	zval property_mime_default_value;
106 	ZVAL_UNDEF(&property_mime_default_value);
107 	zend_string *property_mime_name = zend_string_init("mime", sizeof("mime") - 1, 1);
108 	zend_declare_typed_property(class_entry, property_mime_name, &property_mime_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
109 	zend_string_release(property_mime_name);
110 
111 	return class_entry;
112 }
113