资源简介
libfastcommon-master.zip
代码片段和文件信息
#include “php7_ext_wrapper.h“
#include “ext/standard/info.h“
#include “ext/standard/file.h“
#include “ext/standard/flock_compat.h“
#include
#include
#include
#include
#include
#include
#include
#include “common_define.h“
#include “local_ip_func.h“
#include “logger.h“
#include “hash.h“
#include “sockopt.h“
#include “shared_func.h“
#include “id_generator.h“
#include “system_info.h“
#include “fastcommon.h“
#define MAJOR_VERSION 1
#define MINOR_VERSION 0
#define PATCH_VERSION 8
#define PHP_IDG_RESOURCE_NAME “fastcommon_idg“
#define DEFAULT_SN_FILENAME “/tmp/fastcommon_id_generator.sn“
typedef struct {
struct idg_context idg_context;
} PHPIDGContext;
static int le_consumer;
static PHPIDGContext *last_idg_context = NULL;
typedef struct {
int alloc;
int count;
LogContext *contexts;
} PHPLoggerArray;
typedef struct {
char *filename;
int fd;
} PHPFileContext;
typedef struct {
int alloc;
int count;
PHPFileContext *contexts;
} PHPFileArray;
static PHPLoggerArray logger_array = {0 0 NULL};
static PHPFileArray file_array = {0 0 NULL};
static zval php_error_log;
static zval php_file_put_contents;
static zval *error_log_func = NULL;
static zval *file_put_contents_func = NULL;
#if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION < 3)
const zend_fcall_info empty_fcall_info = { 0 NULL NULL NULL NULL 0 NULL NULL 0 };
#undef ZEND_BEGIN_ARG_INFO_EX
#define ZEND_BEGIN_ARG_INFO_EX(name pass_rest_by_reference return_reference required_num_args) \
static zend_arg_info name[] = { \
{ NULL 0 NULL 0 0 0 pass_rest_by_reference return_reference required_num_args }
#endif
// Every user visible function must have an entry in fastcommon_functions[].
zend_function_entry fastcommon_functions[] = {
ZEND_FE(fastcommon_version NULL)
ZEND_FE(fastcommon_gethostaddrs NULL)
ZEND_FE(fastcommon_time33_hash NULL)
ZEND_FE(fastcommon_simple_hash NULL)
ZEND_FE(fastcommon_get_line_distance_km NULL)
ZEND_FE(fastcommon_get_first_local_ip NULL)
ZEND_FE(fastcommon_get_next_local_ip NULL)
ZEND_FE(fastcommon_is_private_ip NULL)
ZEND_FE(fastcommon_id_generator_init NULL)
ZEND_FE(fastcommon_id_generator_next NULL)
ZEND_FE(fastcommon_id_generator_get_extra NULL)
ZEND_FE(fastcommon_id_generator_get_timestamp NULL)
ZEND_FE(fastcommon_id_generator_destroy NULL)
ZEND_FE(fastcommon_get_ifconfigs NULL)
ZEND_FE(fastcommon_get_cpu_count NULL)
ZEND_FE(fastcommon_get_sysinfo NULL)
ZEND_FE(fastcommon_error_log NULL)
ZEND_FE(fastcommon_file_put_contents NULL)
{NULL NULL NULL} /* Must be the last line */
};
zend_module_entry fastcommon_module_entry = {
STANDARD_MODULE_HEADER
“fastcommon“
fastcommon_functions
PHP_MINIT(fastcommon)
PHP_MSHUTDOWN(fastcommon)
NULL//PHP_RINIT(fastcommon)
NULL//PHP_RSHUTDOWN(fastco
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-04-05 10:07 libfastcommon-master\
文件 8005 2017-04-05 10:07 libfastcommon-master\HISTORY
文件 566 2017-04-05 10:07 libfastcommon-master\INSTALL
文件 2763 2017-04-05 10:07 libfastcommon-master\README
目录 0 2017-04-05 10:07 libfastcommon-master\doc\
文件 105399 2017-04-05 10:07 libfastcommon-master\doc\id_generator-Chinese.pdf
文件 93406 2017-04-05 10:07 libfastcommon-master\doc\ini_file_reader-Chinese.pdf
文件 109920 2017-04-05 10:07 libfastcommon-master\doc\php_log_file_performance-Chinese.pdf
文件 1606 2017-04-05 10:07 libfastcommon-master\libfastcommon.spec
文件 3099 2017-04-05 10:07 libfastcommon-master\make.sh
目录 0 2017-04-05 10:07 libfastcommon-master\php-fastcommon\
文件 504 2017-04-05 10:07 libfastcommon-master\php-fastcommon\config.m4
文件 33825 2017-04-05 10:07 libfastcommon-master\php-fastcommon\fastcommon.c
文件 1190 2017-04-05 10:07 libfastcommon-master\php-fastcommon\fastcommon.h
文件 26 2017-04-05 10:07 libfastcommon-master\php-fastcommon\fastcommon.ini
文件 1122 2017-04-05 10:07 libfastcommon-master\php-fastcommon\php-fastcommon.spec.in
文件 3230 2017-04-05 10:07 libfastcommon-master\php-fastcommon\test.php
文件 2396 2017-04-05 10:07 libfastcommon-master\php-fastcommon\test_error_log.php
文件 2205 2017-04-05 10:07 libfastcommon-master\php-fastcommon\test_file_put_contents.php
目录 0 2017-04-05 10:07 libfastcommon-master\src\
文件 2896 2017-04-05 10:07 libfastcommon-master\src\Makefile.in
文件 14851 2017-04-05 10:07 libfastcommon-master\src\avl_tree.c
文件 1132 2017-04-05 10:07 libfastcommon-master\src\avl_tree.h
文件 10295 2017-04-05 10:07 libfastcommon-master\src\ba
文件 4006 2017-04-05 10:07 libfastcommon-master\src\ba
文件 5080 2017-04-05 10:07 libfastcommon-master\src\chain.c
文件 3973 2017-04-05 10:07 libfastcommon-master\src\chain.h
文件 4253 2017-04-05 10:07 libfastcommon-master\src\char_convert_loader.c
文件 1928 2017-04-05 10:07 libfastcommon-master\src\char_convert_loader.h
文件 4734 2017-04-05 10:07 libfastcommon-master\src\char_converter.c
文件 3620 2017-04-05 10:07 libfastcommon-master\src\char_converter.h
............此处省略72个文件信息
评论
共有 条评论