|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66795 corrupted result getting multi-key from MySQL 5.6 memcached plugin
Submitted: 2014-02-28 13:45 UTC Modified: -
From: ivan dot antonyuck at gmail dot com Assigned:
Status: Open Package: memcache (PECL)
PHP Version: 5.5.9 OS: debian 7 (3.2.0-4-amd64 #1)
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-02-28 13:45 UTC] ivan dot antonyuck at gmail dot com
php version:
 php5                                 5.5.9-1~dotdeb.1

OS version:
3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux

plugin version
memcache 2.2.7   stable

we getting two keys from mysql 5.6 memcache plugin with memcache like this:

$data = $memcache->get( [ $k1 = "@@space1.$id", $k2 = "@@space2.$id" ] );

and we get slightly corrupted answer:

(fields divided by pipe character (|) )

[@@space1.fafb0273-3c41-4b71-b5b7-345cde2d105b] => 00000000-0000-0000-0000-000000000002|[]e|9|"ID":"fafb0273-3c41-4b71-...

note the '[]' in second field. according to DB, it should contain text 'note'.
space2 key is uncorrupdted.

we decided to test it by using telnet, and we got

get @@space1.fafb0273-3c41-4b71-b5b7-345cde2d105b
VALUE @@space1.fafb0273-3c41-4b71-b5b7-345cde2d105b 0 1827

- this result has right value in second field.

when we changed our code to run two single get's memcache returns right value, as returned by memcache plugin by telnet.


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jan 16 06:01:23 2021 UTC