summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_structs.h
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-01-11 14:27:35 +0000
committerAndrey Hristov <andrey@php.net>2010-01-11 14:27:35 +0000
commit9b8d026d86341829e1f18cfdc581ab1ab8655ce2 (patch)
treeebb412ad71df143de86786a9d247d8a481907536 /ext/mysqlnd/mysqlnd_structs.h
parent4a549fbb3d0a1f88e3f2775b952de1130259454c (diff)
downloadphp-git-9b8d026d86341829e1f18cfdc581ab1ab8655ce2.tar.gz
Rework the statistics macros to be reusable by external entities.
Rename handlers to triggers. Dynamically allocate space for the statistics thus allow reusability.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_structs.h')
-rw-r--r--ext/mysqlnd/mysqlnd_structs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_structs.h b/ext/mysqlnd/mysqlnd_structs.h
index 963a87dfd3..65611cce58 100644
--- a/ext/mysqlnd/mysqlnd_structs.h
+++ b/ext/mysqlnd/mysqlnd_structs.h
@@ -214,8 +214,9 @@ typedef void (*mysqlnd_stat_trigger)(MYSQLND_STATS * stats, enum_mysqlnd_collect
struct st_mysqlnd_stats
{
- uint64_t values[STAT_LAST];
+ uint64_t *values;
mysqlnd_stat_trigger *triggers;
+ size_t count;
zend_bool in_trigger;
#ifdef ZTS
MUTEX_T LOCK_access;