From 03e9a8aa2c88208c60511d239bf6f66f5d064723 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 1 Jun 2018 06:45:22 +0200 Subject: [PATCH 1/2] fix arginfo for Vtiful\Kernel\Excel::fileName() and Vtiful\Kernel\Excel::constMemory() --- kernel/excel.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kernel/excel.c b/kernel/excel.c index 25e120e..0fd05cb 100644 --- a/kernel/excel.c +++ b/kernel/excel.c @@ -61,11 +61,15 @@ ZEND_BEGIN_ARG_INFO_EX(xls_construct_arginfo, 0, 0, 1) ZEND_ARG_INFO(0, config) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(xls_file_name_arginfo, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(xls_file_name_arginfo, 0, 0, 1) ZEND_ARG_INFO(0, file_name) ZEND_ARG_INFO(0, sheet_name) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(xls_const_memory_arginfo, 0, 0, 1) + ZEND_ARG_INFO(0, file_name) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(xls_file_add_sheet, 0, 0, 1) ZEND_ARG_INFO(0, sheet_name) ZEND_END_ARG_INFO() @@ -496,7 +500,7 @@ zend_function_entry xls_methods[] = { PHP_ME(vtiful_xls, __construct, xls_construct_arginfo, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(vtiful_xls, fileName, xls_file_name_arginfo, ZEND_ACC_PUBLIC) PHP_ME(vtiful_xls, addSheet, xls_file_add_sheet, ZEND_ACC_PUBLIC) - PHP_ME(vtiful_xls, constMemory, xls_file_name_arginfo, ZEND_ACC_PUBLIC) + PHP_ME(vtiful_xls, constMemory, xls_const_memory_arginfo, ZEND_ACC_PUBLIC) PHP_ME(vtiful_xls, header, xls_header_arginfo, ZEND_ACC_PUBLIC) PHP_ME(vtiful_xls, data, xls_data_arginfo, ZEND_ACC_PUBLIC) PHP_ME(vtiful_xls, output, NULL, ZEND_ACC_PUBLIC)