当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 96

wesleywu/php-ext-xlswriter
关闭

forked from viest/php-ext-xlswriter 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
xlswriter.c 3.50 KB
一键复制 编辑 原始数据 按行查看 历史
Remi Collet 提交于 2019-09-16 12:04 . report libxlsxio in phpinfo
/*
+----------------------------------------------------------------------+
| XlsWriter Extension |
+----------------------------------------------------------------------+
| Copyright (c) 2017-2018 The Viest |
+----------------------------------------------------------------------+
| http://www.viest.me |
+----------------------------------------------------------------------+
| Author: viest <dev@service.viest.me> |
+----------------------------------------------------------------------+
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
#include "ext/standard/info.h"
#include "xlswriter.h"
#if ENABLE_READER
#include <xlsxio_version.h>
#include <xlsxio_read.h>
#endif
int le_xls_writer;
/* {{{ PHP_MINIT_FUNCTION
*/
PHP_MINIT_FUNCTION(xlswriter)
{
VTIFUL_STARTUP_MODULE(exception);
VTIFUL_STARTUP_MODULE(excel);
VTIFUL_STARTUP_MODULE(format);
VTIFUL_STARTUP_MODULE(chart);
le_xls_writer = zend_register_list_destructors_ex(_php_vtiful_xls_close, NULL, VTIFUL_RESOURCE_NAME, module_number);
return SUCCESS;
}
/* }}} */
/* {{{ PHP_MSHUTDOWN_FUNCTION
*/
PHP_MSHUTDOWN_FUNCTION(xlswriter)
{
return SUCCESS;
}
/* }}} */
/* {{{ PHP_RINIT_FUNCTION
*/
PHP_RINIT_FUNCTION(xlswriter)
{
#if defined(COMPILE_DL_VTIFUL) && defined(ZTS)
ZEND_TSRMLS_CACHE_UPDATE();
#endif
return SUCCESS;
}
/* }}} */
/* {{{ PHP_RSHUTDOWN_FUNCTION
*/
PHP_RSHUTDOWN_FUNCTION(xlswriter)
{
return SUCCESS;
}
/* }}} */
/* {{{ PHP_MINFO_FUNCTION
*/
PHP_MINFO_FUNCTION(xlswriter)
{
php_info_print_table_start();
php_info_print_table_header(2, "xlswriter support", "enabled");
#if defined(PHP_XLSWRITER_VERSION)
php_info_print_table_row(2, "Version", PHP_XLSWRITER_VERSION);
#endif
#ifdef LXW_VERSION
#ifdef HAVE_LIBXLSXWRITER
/* Build time */
php_info_print_table_row(2, "libxlsxwriter headers version", LXW_VERSION);
#ifdef HAVE_LXW_VERSION
/* Run time, available since 0.7.9 */
php_info_print_table_row(2, "libxlsxwriter library version", lxw_version());
#endif
#else
php_info_print_table_row(2, "bundled libxlsxwriter version", LXW_VERSION);
#endif
#endif
#if ENABLE_READER
#if HAVE_LIBXLSXIO
/* Build time */
php_info_print_table_row(2, "libxlsxio headers version", XLSXIO_VERSION_STRING);
/* Run time */
php_info_print_table_row(2, "libxlsxio library version", xlsxioread_get_version_string());
#else
php_info_print_table_row(2, "bundled libxlsxio version", XLSXIO_VERSION_STRING);
#endif
#endif
php_info_print_table_end();
}
/* }}} */
/* {{{ xlswriter_functions[]
*
* Every user visible function must have an entry in xlswriter_functions[].
*/
const zend_function_entry xlswriter_functions[] = {
PHP_FE_END
};
/* }}} */
/* {{{ vtiful_module_entry
*/
zend_module_entry xlswriter_module_entry = {
STANDARD_MODULE_HEADER,
"xlswriter",
xlswriter_functions,
PHP_MINIT(xlswriter),
PHP_MSHUTDOWN(xlswriter),
PHP_RINIT(xlswriter), /* Replace with NULL if there's nothing to do at request start */
PHP_RSHUTDOWN(xlswriter), /* Replace with NULL if there's nothing to do at request end */
PHP_MINFO(xlswriter),
PHP_XLSWRITER_VERSION,
STANDARD_MODULE_PROPERTIES
};
/* }}} */
#ifdef COMPILE_DL_XLSWRITER
#ifdef ZTS
ZEND_TSRMLS_CACHE_DEFINE();
#endif
ZEND_GET_MODULE(xlswriter)
#endif
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/moumou/php-ext-xlswriter.git
git@gitee.com:moumou/php-ext-xlswriter.git
moumou
php-ext-xlswriter
php-ext-xlswriter
master

搜索帮助