|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58022 Invalid handling of non-ascii keys on 64-bit systems
Submitted: 2008-01-30 06:50 UTC Modified: 2008-02-05 15:03 UTC
From: erikg at codepoet dot no Assigned:
Status: Duplicate Package: memcache (PECL)
PHP Version: 5.2.1 OS: ArchLinux
Private report: No CVE-ID: None
 [2008-01-30 06:50 UTC] erikg at codepoet dot no
On 64-bit systems, keys with non-ascii characters aren't handled correctly. The following code returns false on 32-bit systems, but "value" on 64-bit systems.

It seems like non-ascii characters are simply replaced with _.

Reproduce code:
$c = new MemCache();

$c->set("?", "value");

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-30 15:02 UTC] mikael at synd dot info
This sounds like a duplicate of Bug #12883 (, please checkout and try the latest source from CVS and re-open the bug if the problem persists. You can build from CVS like:

 cvs -d co pecl/memcache
 cd pecl/memcache
 make && make install

 [2008-02-05 08:59 UTC] erikg at codepoet dot no
Confirmed, fixed in cvs
 [2008-02-05 15:03 UTC] mikael at synd dot info
Fixed in release 2.2.3
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Jun 26 05:03:41 2022 UTC