File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,7 @@ function copy_sources() {
330
330
331
331
$ files = [
332
332
'skeleton.c ' => $ options ['ext ' ] . '.c ' ,
333
+ 'skeleton.stub ' => $ options ['ext ' ] . '.stub.php ' ,
333
334
'php_skeleton.h ' => 'php_ ' . $ options ['ext ' ] . '.h '
334
335
];
335
336
Original file line number Diff line number Diff line change 7
7
#include "php.h"
8
8
#include "ext/standard/info.h"
9
9
#include "php_%EXTNAME%.h"
10
+ #include "%EXTNAME%_arginfo.h"
10
11
11
12
/* For compatibility with older PHP versions */
12
13
#ifndef ZEND_PARSE_PARAMETERS_NONE
@@ -66,16 +67,6 @@ PHP_MINFO_FUNCTION(%EXTNAME%)
66
67
}
67
68
/* }}} */
68
69
69
- /* {{{ arginfo
70
- */
71
- ZEND_BEGIN_ARG_INFO (arginfo_ %EXTNAME %_test1 , 0 )
72
- ZEND_END_ARG_INFO ()
73
-
74
- ZEND_BEGIN_ARG_INFO (arginfo_ %EXTNAME %_test2 , 0 )
75
- ZEND_ARG_INFO (0 , str )
76
- ZEND_END_ARG_INFO ()
77
- /* }}} */
78
-
79
70
/* {{{ %EXTNAME%_functions[]
80
71
*/
81
72
static const zend_function_entry %EXTNAME %_functions [] = {
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ function %EXTNAME%_test1(): void {}
4
+
5
+ function %EXTNAME%_test2(string $str = ""): string {}
You can’t perform that action at this time.
0 commit comments