Copy the arginfo stubs file, and drop the %EXTNAME%_ to make things line up.
Closes GH-5289.
$files = [
'skeleton.c' => $options['ext'] . '.c',
'skeleton.stub.php' => $options['ext'] . '.stub.php',
- 'php_skeleton.h' => 'php_' . $options['ext'] . '.h'
+ 'php_skeleton.h' => 'php_' . $options['ext'] . '.h',
+ 'skeleton_arginfo.h' => $options['ext'] . '_arginfo.h'
];
foreach ($files as $src_file => $dst_file) {
}
/* }}} */
-/* {{{ string %EXTNAME%_test2( [ string $var ] )
+/* {{{ string test2( [ string $var ] )
*/
-PHP_FUNCTION(%EXTNAME%_test2)
+PHP_FUNCTION(test2)
{
char *var = "World";
size_t var_len = sizeof("World") - 1;