php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch dpoole-nowrap-for-mysqlnd-uint64 for MySQL related Bug #71023Patch version 2015-12-04 05:41 UTC Return to Bug #71023 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: damian.poole@netregistry.com.au--- mysqlnd_statistics.h 2015-12-04 16:00:38.000000000 +1100 +++ mysqlnd_statistics.h.old 2015-12-04 15:59:55.000000000 +1100 @@ -61,25 +61,22 @@ #define MYSQLND_DEC_STATISTIC(enabler, stats, statistic) \ { \ - enum_mysqlnd_collected_stats _s = (statistic);\ - MYSQLND_STATS * _p_s = (MYSQLND_STATS *) (stats); \ - if ((enabler) && _p_s && _s != _p_s->count && (_p_s)->values[(_s)] != 0) { \ - MYSQLND_UPDATE_VALUE_AND_CALL_TRIGGER(_p_s, _s, -1); \ - }\ + enum_mysqlnd_collected_stats _s = (statistic);\ + MYSQLND_STATS * _p_s = (MYSQLND_STATS *) (stats); \ + if ((enabler) && _p_s && _s != _p_s->count) { \ + MYSQLND_UPDATE_VALUE_AND_CALL_TRIGGER(_p_s, _s, -1); \ + }\ } - - #define MYSQLND_INC_STATISTIC(enabler, stats, statistic) \ { \ - enum_mysqlnd_collected_stats _s = (statistic);\ - MYSQLND_STATS * _p_s = (MYSQLND_STATS *) (stats); \ - if ((enabler) && _p_s && _s != _p_s->count && (_p_s)->values[(_s)] != UINT64_MAX) { \ - MYSQLND_UPDATE_VALUE_AND_CALL_TRIGGER(_p_s, _s, 1); \ - }\ + enum_mysqlnd_collected_stats _s = (statistic);\ + MYSQLND_STATS * _p_s = (MYSQLND_STATS *) (stats); \ + if ((enabler) && _p_s && _s != _p_s->count) { \ + MYSQLND_UPDATE_VALUE_AND_CALL_TRIGGER(_p_s, _s, 1); \ + }\ } - #define MYSQLND_INC_STATISTIC_W_VALUE(enabler, stats, statistic, value) \ { \ enum_mysqlnd_collected_stats _s = (statistic);\ |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Fri Dec 13 02:01:27 2024 UTC |