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
commit41ead37c041fe676a3f201d78d4761a213c322e8 (patch)
treeb3e2e4bf3facc579338bb349f235a6c09c786fe5 /ext/mysqlnd/mysqlnd_structs.h
parent7669d7681a9036b52e440c1a43ee67ed61b10eb2 (diff)
downloadphp-git-41ead37c041fe676a3f201d78d4761a213c322e8.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;