Skip to content

Commit 7f5521a

Browse files
committed
Feat: put csv callback
1 parent 8807079 commit 7f5521a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

kernel/excel.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ ZEND_BEGIN_ARG_INFO_EX(xls_put_csv_arginfo, 0, 0, 1)
176176
ZEND_ARG_INFO(0, fp)
177177
ZEND_END_ARG_INFO()
178178

179+
ZEND_BEGIN_ARG_INFO_EX(xls_put_csv_callback_arginfo, 0, 0, 2)
180+
ZEND_ARG_INFO(0, callback)
181+
ZEND_ARG_INFO(0, fp)
182+
ZEND_END_ARG_INFO()
183+
179184
ZEND_BEGIN_ARG_INFO_EX(xls_set_type_arginfo, 0, 0, 1)
180185
ZEND_ARG_INFO(0, zv_type_t)
181186
ZEND_END_ARG_INFO()
@@ -1126,7 +1131,7 @@ zend_function_entry xls_methods[] = {
11261131
PHP_ME(vtiful_xls, openFile, xls_open_file_arginfo, ZEND_ACC_PUBLIC)
11271132
PHP_ME(vtiful_xls, openSheet, xls_open_sheet_arginfo, ZEND_ACC_PUBLIC)
11281133
PHP_ME(vtiful_xls, putCSV, xls_put_csv_arginfo, ZEND_ACC_PUBLIC)
1129-
PHP_ME(vtiful_xls, putCSVCallback, NULL, ZEND_ACC_PUBLIC)
1134+
PHP_ME(vtiful_xls, putCSVCallback, xls_put_csv_callback_arginfo, ZEND_ACC_PUBLIC)
11301135
PHP_ME(vtiful_xls, sheetList, NULL, ZEND_ACC_PUBLIC)
11311136
PHP_ME(vtiful_xls, setType, xls_set_type_arginfo, ZEND_ACC_PUBLIC)
11321137
PHP_ME(vtiful_xls, getSheetData, NULL, ZEND_ACC_PUBLIC)

0 commit comments

Comments
 (0)