summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_statistics.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-03-29 17:04:16 +0000
committerAndrey Hristov <andrey@php.net>2010-03-29 17:04:16 +0000
commit94cd357f5b4a2533510e382e08861269f57602e0 (patch)
tree65d0d2b969cd8f31eb6af1fbe908c9db965224f1 /ext/mysqlnd/mysqlnd_statistics.c
parente99039d69269445ea7a786cff6086a314d301da0 (diff)
downloadphp-git-94cd357f5b4a2533510e382e08861269f57602e0.tar.gz
Make it coupled - what is allocated with mnd_ should be freed
with mnd_ and vice versa. Added mnd_pestrndup and mnd_pestrdup, which wrap the normal calls to be able to track this calls. Fixed some failing tests.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_statistics.c')
-rw-r--r--ext/mysqlnd/mysqlnd_statistics.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_statistics.c b/ext/mysqlnd/mysqlnd_statistics.c
index e52414b3e8..2e7665d8a7 100644
--- a/ext/mysqlnd/mysqlnd_statistics.c
+++ b/ext/mysqlnd/mysqlnd_statistics.c
@@ -112,6 +112,10 @@ const MYSQLND_STRING mysqlnd_stats_values_names[STAT_LAST] =
{ STR_W_LEN("mem_realloc_count") },
{ STR_W_LEN("mem_realloc_ammount") },
{ STR_W_LEN("mem_free_count") },
+ { STR_W_LEN("mem_estrndup_count") },
+ { STR_W_LEN("mem_strndup_count") },
+ { STR_W_LEN("mem_estndup_count") },
+ { STR_W_LEN("mem_strdup_count") },
{ STR_W_LEN("proto_text_fetched_null") },
{ STR_W_LEN("proto_text_fetched_bit") },
{ STR_W_LEN("proto_text_fetched_tinyint") },