@@ -48,6 +48,7 @@ function_entry php_mcve_functions[] = {
48
48
PHP_FE (mcve_setip , NULL )
49
49
PHP_FE (mcve_setssl , NULL )
50
50
PHP_FE (mcve_settimeout , NULL )
51
+ PHP_FE (mcve_setblocking , NULL )
51
52
PHP_FE (mcve_verifyconnection , NULL )
52
53
PHP_FE (mcve_verifysslcert , NULL )
53
54
PHP_FE (mcve_maxconntimeout , NULL )
@@ -97,6 +98,10 @@ function_entry php_mcve_functions[] = {
97
98
PHP_FE (mcve_ub , NULL )
98
99
PHP_FE (mcve_chkpwd , NULL )
99
100
PHP_FE (mcve_bt , NULL )
101
+ PHP_FE (mcve_uwait , NULL )
102
+ PHP_FE (mcve_text_code , NULL )
103
+ PHP_FE (mcve_text_avs , NULL )
104
+ PHP_FE (mcve_text_cv , NULL )
100
105
/* Administrator Functions */
101
106
PHP_FE (mcve_chngpwd , NULL )
102
107
PHP_FE (mcve_listusers , NULL )
@@ -2077,6 +2082,91 @@ PHP_FUNCTION(mcve_edituser)
2077
2082
}
2078
2083
/* }}} */
2079
2084
2085
+
2086
+ /* {{{ proto int mcve_uwait(long microsecs)
2087
+ Wait x microsecs */
2088
+ PHP_FUNCTION (mcve_uwait )
2089
+ {
2090
+ long retval ;
2091
+ zval * * arg ;
2092
+
2093
+ if (ZEND_NUM_ARGS () != 1 || zend_get_parameters_ex (1 , & arg ) == FAILURE )
2094
+ WRONG_PARAM_COUNT ;
2095
+
2096
+ convert_to_long_ex (arg );
2097
+
2098
+ retval = MCVE_uwait (Z_LVAL_PP (arg ));
2099
+
2100
+ RETURN_LONG (retval );
2101
+ }
2102
+ /* }}} */
2103
+
2104
+ /* {{{ proto string mcve_text_code(string code)
2105
+ Get a textual representation of the return_code */
2106
+ PHP_FUNCTION (mcve_text_code )
2107
+ {
2108
+ char * retval ;
2109
+ zval * * arg ;
2110
+
2111
+ if (ZEND_NUM_ARGS () != 1 || zend_get_parameters_ex (1 , & arg ) == FAILURE )
2112
+ WRONG_PARAM_COUNT ;
2113
+
2114
+ convert_to_long_ex (arg );
2115
+
2116
+ retval = MCVE_TEXT_AVS (Z_LVAL_PP (arg ));
2117
+
2118
+ if (retval == NULL ) {
2119
+ RETVAL_STRING ("" ,1 );
2120
+ } else {
2121
+ RETVAL_STRING (retval , 1 );
2122
+ }
2123
+ }
2124
+ /* }}} */
2125
+
2126
+ /* {{{ proto string mcve_text_avs(string code)
2127
+ Get a textual representation of the return_avs */
2128
+ PHP_FUNCTION (mcve_text_avs )
2129
+ {
2130
+ char * retval ;
2131
+ zval * * arg ;
2132
+
2133
+ if (ZEND_NUM_ARGS () != 1 || zend_get_parameters_ex (1 , & arg ) == FAILURE )
2134
+ WRONG_PARAM_COUNT ;
2135
+
2136
+ convert_to_long_ex (arg );
2137
+
2138
+ retval = MCVE_TEXT_AVS (Z_LVAL_PP (arg ));
2139
+
2140
+ if (retval == NULL ) {
2141
+ RETVAL_STRING ("" ,1 );
2142
+ } else {
2143
+ RETVAL_STRING (retval , 1 );
2144
+ }
2145
+ }
2146
+ /* }}} */
2147
+
2148
+ /* {{{ proto string mcve_text_cv(int code)
2149
+ Get a textual representation of the return_cv */
2150
+ PHP_FUNCTION (mcve_text_cv )
2151
+ {
2152
+ char * retval ;
2153
+ zval * * arg ;
2154
+
2155
+ if (ZEND_NUM_ARGS () != 1 || zend_get_parameters_ex (1 , & arg ) == FAILURE )
2156
+ WRONG_PARAM_COUNT ;
2157
+
2158
+ convert_to_long_ex (arg );
2159
+
2160
+ retval = MCVE_TEXT_CV (Z_LVAL_PP (arg ));
2161
+
2162
+ if (retval == NULL ) {
2163
+ RETVAL_STRING ("" ,1 );
2164
+ } else {
2165
+ RETVAL_STRING (retval , 1 );
2166
+ }
2167
+ }
2168
+ /* }}} */
2169
+
2080
2170
/* END OF MCVE PHP EXTENSION */
2081
2171
2082
2172
/*
0 commit comments