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: 2021-03-25 16:37 UTC
From: ivan dot antonyuck at gmail dot com Assigned: cmb (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.5.9 OS: debian 7 (3.2.0-4-amd64 #1)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-25 16:37 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-03-25 16:37 UTC] cmb@php.net
The official bug tracker for PECL/memcache is now at
<https://github.com/websupport-sk/pecl-memcache/issues>.

So, if this is still an issue with either of the current memcache
versions (4 or 8), please file an issue there.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 11:01:28 2024 UTC