|
15 | 15 | #include "spoofchecker_class.h"
|
16 | 16 | #include "spoofchecker_main.h"
|
17 | 17 | #include "spoofchecker_create.h"
|
| 18 | +#include "spoofchecker_arginfo.h" |
18 | 19 | #include "php_intl.h"
|
19 | 20 | #include "intl_error.h"
|
20 | 21 |
|
@@ -58,49 +59,18 @@ zend_object *Spoofchecker_object_create(zend_class_entry *ce)
|
58 | 59 | * 'Spoofchecker' class registration structures & functions
|
59 | 60 | */
|
60 | 61 |
|
61 |
| -/* {{{ Spoofchecker methods arguments info */ |
62 |
| -ZEND_BEGIN_ARG_INFO_EX(spoofchecker_0_args, 0, 0, 0) |
63 |
| -ZEND_END_ARG_INFO() |
64 |
| - |
65 |
| -ZEND_BEGIN_ARG_INFO_EX(spoofchecker_set_checks, 0, 0, 1) |
66 |
| - ZEND_ARG_INFO(0, checks) |
67 |
| -ZEND_END_ARG_INFO() |
68 |
| - |
69 |
| -ZEND_BEGIN_ARG_INFO_EX(spoofchecker_set_allowed_locales, 0, 0, 1) |
70 |
| - ZEND_ARG_INFO(0, locale_list) |
71 |
| -ZEND_END_ARG_INFO() |
72 |
| - |
73 |
| -ZEND_BEGIN_ARG_INFO_EX(spoofchecker_is_suspicous, 0, 0, 1) |
74 |
| - ZEND_ARG_INFO(0, text) |
75 |
| - ZEND_ARG_INFO(1, error) |
76 |
| -ZEND_END_ARG_INFO() |
77 |
| - |
78 |
| -ZEND_BEGIN_ARG_INFO_EX(spoofchecker_are_confusable, 0, 0, 2) |
79 |
| - ZEND_ARG_INFO(0, s1) |
80 |
| - ZEND_ARG_INFO(0, s2) |
81 |
| - ZEND_ARG_INFO(1, error) |
82 |
| -ZEND_END_ARG_INFO() |
83 |
| - |
84 |
| -#if U_ICU_VERSION_MAJOR_NUM >= 58 |
85 |
| -ZEND_BEGIN_ARG_INFO_EX(spoofchecker_set_restriction_level, 0, 0, 1) |
86 |
| - ZEND_ARG_INFO(0, level) |
87 |
| -ZEND_END_ARG_INFO() |
88 |
| -#endif |
89 |
| - |
90 |
| -/* }}} */ |
91 |
| - |
92 | 62 | /* {{{ Spoofchecker_class_functions
|
93 | 63 | * Every 'Spoofchecker' class method has an entry in this table
|
94 | 64 | */
|
95 | 65 |
|
96 | 66 | static const zend_function_entry Spoofchecker_class_functions[] = {
|
97 |
| - PHP_ME(Spoofchecker, __construct, spoofchecker_0_args, ZEND_ACC_PUBLIC) |
98 |
| - PHP_ME(Spoofchecker, isSuspicious, spoofchecker_is_suspicous, ZEND_ACC_PUBLIC) |
99 |
| - PHP_ME(Spoofchecker, areConfusable, spoofchecker_are_confusable, ZEND_ACC_PUBLIC) |
100 |
| - PHP_ME(Spoofchecker, setAllowedLocales, spoofchecker_set_allowed_locales, ZEND_ACC_PUBLIC) |
101 |
| - PHP_ME(Spoofchecker, setChecks, spoofchecker_set_checks, ZEND_ACC_PUBLIC) |
| 67 | + PHP_ME(Spoofchecker, __construct, arginfo_class_Spoofchecker___construct, ZEND_ACC_PUBLIC) |
| 68 | + PHP_ME(Spoofchecker, isSuspicious, arginfo_class_Spoofchecker_isSuspicious, ZEND_ACC_PUBLIC) |
| 69 | + PHP_ME(Spoofchecker, areConfusable, arginfo_class_Spoofchecker_areConfusable, ZEND_ACC_PUBLIC) |
| 70 | + PHP_ME(Spoofchecker, setAllowedLocales, arginfo_class_Spoofchecker_setAllowedLocales, ZEND_ACC_PUBLIC) |
| 71 | + PHP_ME(Spoofchecker, setChecks, arginfo_class_Spoofchecker_setChecks, ZEND_ACC_PUBLIC) |
102 | 72 | #if U_ICU_VERSION_MAJOR_NUM >= 58
|
103 |
| - PHP_ME(Spoofchecker, setRestrictionLevel, spoofchecker_set_restriction_level, ZEND_ACC_PUBLIC) |
| 73 | + PHP_ME(Spoofchecker, setRestrictionLevel, arginfo_class_Spoofchecker_setRestrictionLevel, ZEND_ACC_PUBLIC) |
104 | 74 | #endif
|
105 | 75 | PHP_FE_END
|
106 | 76 | };
|
|
0 commit comments