parent
cf40f8e42e
commit
0ebccb5bf0
2
INSTALL
2
INSTALL
|
|
@ -21,5 +21,5 @@ Debian, Ubuntu etc.:
|
|||
# the command lines as:
|
||||
|
||||
git clone https://github.com/happyfish100/libfastcommon.git
|
||||
cd libfastcommon; git checkout V1.0.84
|
||||
cd libfastcommon; git checkout V1.0.85
|
||||
./make.sh clean && ./make.sh && sudo ./make.sh install
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include "common_define.h"
|
||||
#include "fc_version.h"
|
||||
#include "local_ip_func.h"
|
||||
#include "logger.h"
|
||||
#include "hash.h"
|
||||
|
|
@ -33,10 +33,6 @@
|
|||
#include "system_info.h"
|
||||
#include "fastcommon.h"
|
||||
|
||||
#define MAJOR_VERSION 1
|
||||
#define MINOR_VERSION 0
|
||||
#define PATCH_VERSION 8
|
||||
|
||||
#define IDG_FLAGS_EXTRA_DATA_BY_MOD 1
|
||||
|
||||
#define PHP_IDG_RESOURCE_NAME "fastcommon_idg"
|
||||
|
|
@ -311,13 +307,13 @@ PHP_RSHUTDOWN_FUNCTION(fastcommon)
|
|||
|
||||
PHP_MINFO_FUNCTION(fastcommon)
|
||||
{
|
||||
char mc_info[64];
|
||||
sprintf(mc_info, "fastcommon v%d.%02d support",
|
||||
MAJOR_VERSION, MINOR_VERSION);
|
||||
char mc_info[64];
|
||||
sprintf(mc_info, "fastcommon v%d.%d.%d supported",
|
||||
FC_MAJOR_VERSION, FC_MINOR_VERSION, FC_PATCH_VERSION);
|
||||
|
||||
php_info_print_table_start();
|
||||
php_info_print_table_header(2, mc_info, "enabled");
|
||||
php_info_print_table_end();
|
||||
php_info_print_table_start();
|
||||
php_info_print_table_header(2, mc_info, "enabled");
|
||||
php_info_print_table_end();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -326,13 +322,14 @@ return client library version
|
|||
*/
|
||||
ZEND_FUNCTION(fastcommon_version)
|
||||
{
|
||||
char szVersion[16];
|
||||
int len;
|
||||
Version version;
|
||||
char szVersion[16];
|
||||
int len;
|
||||
|
||||
len = sprintf(szVersion, "%d.%d.%d",
|
||||
MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION);
|
||||
|
||||
ZEND_RETURN_STRINGL(szVersion, len, 1);
|
||||
fc_version(&version);
|
||||
len = sprintf(szVersion, "%d.%d.%d", version.major,
|
||||
version.minor, version.patch);
|
||||
ZEND_RETURN_STRINGL(szVersion, len, 1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue