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() {
330330
331331 $ files = [
332332 'skeleton.c ' => $ options ['ext ' ] . '.c ' ,
333+ 'skeleton.stub ' => $ options ['ext ' ] . '.stub.php ' ,
333334 'php_skeleton.h ' => 'php_ ' . $ options ['ext ' ] . '.h '
334335 ];
335336
Original file line number Diff line number Diff line change 77#include "php.h"
88#include "ext/standard/info.h"
99#include "php_%EXTNAME%.h"
10+ #include "%EXTNAME%_arginfo.h"
1011
1112/* For compatibility with older PHP versions */
1213#ifndef ZEND_PARSE_PARAMETERS_NONE
@@ -66,16 +67,6 @@ PHP_MINFO_FUNCTION(%EXTNAME%)
6667}
6768/* }}} */
6869
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-
7970/* {{{ %EXTNAME%_functions[]
8071 */
8172static 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