php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ivan dot antonyuck at gmail dot com
New email:
PHP Version: OS:

 

 [2014-02-28 13:45 UTC] ivan dot antonyuck at gmail dot com
Description:
------------
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

description
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
00000000-0000-0000-0000-000000000002|note|9|"ID":"fafb0273-3c41-4b71-...

- 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.




Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 23:01:24 2019 UTC