@@ -37,6 +37,9 @@ ZEND_END_ARG_INFO()
37
37
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO (arginfo_zend_test_nullable_array_return , IS_ARRAY , 1 )
38
38
ZEND_END_ARG_INFO ()
39
39
40
+ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO (arginfo_zend_test_void_return , IS_VOID , 0 )
41
+ ZEND_END_ARG_INFO ()
42
+
40
43
ZEND_BEGIN_ARG_INFO_EX (arginfo_zend_terminate_string , 0 , 0 , 1 )
41
44
ZEND_ARG_INFO (1 , str )
42
45
ZEND_END_ARG_INFO ()
@@ -64,6 +67,11 @@ ZEND_FUNCTION(zend_test_nullable_array_return)
64
67
zend_parse_parameters (ZEND_NUM_ARGS (), "|zz" , & arg1 , & arg2 );
65
68
}
66
69
70
+ ZEND_FUNCTION (zend_test_void_return )
71
+ {
72
+ /* dummy */
73
+ }
74
+
67
75
/* Create a string without terminating null byte. Must be termined with
68
76
* zend_terminate_string() before destruction, otherwise a warning is issued
69
77
* in debug builds. */
@@ -239,6 +247,7 @@ PHP_MINFO_FUNCTION(zend_test)
239
247
static const zend_function_entry zend_test_functions [] = {
240
248
ZEND_FE (zend_test_array_return , arginfo_zend_test_array_return )
241
249
ZEND_FE (zend_test_nullable_array_return , arginfo_zend_test_nullable_array_return )
250
+ ZEND_FE (zend_test_void_return , arginfo_zend_test_void_return )
242
251
ZEND_FE (zend_create_unterminated_string , NULL )
243
252
ZEND_FE (zend_terminate_string , arginfo_zend_terminate_string )
244
253
ZEND_FE (zend_leak_bytes , NULL )
0 commit comments