| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 | /*  +----------------------------------------------------------------------+  | XlsWriter Extension                                                  |  +----------------------------------------------------------------------+  | Copyright (c) 2017-2018 The Viest                                    |  +----------------------------------------------------------------------+  | http://www.viest.me                                                  |  +----------------------------------------------------------------------+  | Author: viest <[email protected]>                                 |  +----------------------------------------------------------------------+*/#ifdef HAVE_CONFIG_H#include "config.h"#endif#include "php.h"#include "ext/standard/info.h"#include "kernel/include.h"int le_xls_writer;/* {{{ PHP_MINIT_FUNCTION */PHP_MINIT_FUNCTION(xlswriter){    VTIFUL_STARTUP_MODULE(exception);	VTIFUL_STARTUP_MODULE(excel);	VTIFUL_STARTUP_MODULE(format);	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	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 ZTSZEND_TSRMLS_CACHE_DEFINE();#endifZEND_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 */
 |