php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58466 memcache keys whitespaces replace issue
Submitted: 2008-12-18 03:47 UTC Modified: 2008-12-25 09:11 UTC
From: paulgao at yeah dot net Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: 5.2.5 OS: Slackware
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: paulgao at yeah dot net
New email:
PHP Version: OS:

 

 [2008-12-18 03:47 UTC] paulgao at yeah dot net
Description:
------------
When using MemcachePool's set method to set array style data, the method doesn't replace whitespaces(tab, etc.) in array keys.

Reproduce code:
---------------
$mcpool = new MemcachePool;

$mcpool->connect('192.168.0.11', 7380, 7380, false, 1, 1);

var_dump($mcpool->set(array(' ' => array()), NULL, 0, 10));


Expected result:
----------------
true

Actual result:
--------------
Notice: MemcachePool::set(): Server 192.168.0.11 (tcp 7380, udp 7380) failed with: Network timeout (0) in /tmp/mctest.php on line 9

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-25 09:11 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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 09:01:33 2025 UTC