php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58142 error in opcode
Submitted: 2008-04-04 11:22 UTC Modified: 2008-05-29 15:58 UTC
From: serhat at mozanim dot com Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: 5.2.5 OS:
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: serhat at mozanim dot com
New email:
PHP Version: OS:

 

 [2008-04-04 11:22 UTC] serhat at mozanim dot com
Description:
------------
The opcodes do not match those as written in binary-protocol-plan-v2.txt  (supplied with memcached-1.3.0)

The correct opcodes are:

0x00    Get
0x01    Set
0x02    Add
0x03    Replace
0x04    Delete
0x05    Increment
0x06    Decrement
0x07    Quit
0x08    Flush
0x09    GetQ
0x0A    No-op
0x0B    Version

The differences start from 0x05 and above. GetQ is 0x09, not 0x08, etc. The magic bytes are also different.

This client code was most likely written well before this RFC was made (kudos for that, btw), but it needs some minor changes to work.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-05 04:53 UTC] serhat at mozanim dot com
Actually, I should add that the changes aren't limited to just the opcodes, but involve other areas as well.

You should be able to use memcached-1.3.0 as a working reference.
 [2008-05-29 15:58 UTC] mikael at synd dot info
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 15:01:31 2024 UTC