Closed (fixed)
Project:
Memcache API and Integration
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2019 at 20:41 UTC
Updated:
20 Aug 2020 at 17:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
rrustamSAI commentedPHP v7.2.14
Apache v2.4.37
Drupal v7.64
memcache module v1.7-beta1
Comment #3
rrustamSAI commentedmemcached v1.5.12
Comment #4
benclark commentedI ran into the same issue this morning running latest 7.x-1.x. My memcache servers returned a key "libevent" with value "2.0.0-stable" (or something along those lines), and the dmemcache_stats() function was attempting to aggregate it because "libevent" wasn't explicitly listed in $no_aggregate.
The attached patch adds a check for is_numeric() alongside !in_array($no_aggregate), since there's no point in attempting to sum two non-numbers. Another possible approach is to add "libevent" to the $no_aggregate array.
Hope this helps!
Comment #5
shaunlaws commentedPatch for 8.x-2.0, adding 'libevent' to the no aggregation array.
Comment #6
shaunlaws commentedComment #7
jeremy commentedIf we simply check if it's integer, we can completely get rid of the no_aggregation array (and maybe avoid similar regressions in the future).
Comment #9
jeremy commentedComment #10
japerry