|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59019 How can I just use 'udp' connect memcached
Submitted: 2010-01-04 03:39 UTC Modified: 2021-03-25 16:48 UTC
From: huaxingqian at gmail dot com Assigned: cmb (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.2.6 OS: CentOS5.2
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:
Bug Type:
From: huaxingqian at gmail dot com
New email:
PHP Version: OS:


 [2010-01-04 03:39 UTC] huaxingqian at gmail dot com
memcache version 3.0.3 and memcached version 1.3.2.

How can I use UDP for 'set'.
How can I just use 'udp' connect memcached.

Reproduce code:
$memcache = new MemcachePool;
$memcache->connect('', 0, 11223);
$mem_key = 'test_package';
$memcache->set($mem_key, 'sajkdghlghasldghsalghaslgh');
$re = $memcache->get($mem_key);

Expected result:
Warning: MemcachePool::connect() [memcachepool.connect]: Can't connect to, Failed to parse address "" (0) in /data/local/apache2/htdocs/test.php on line 6


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-14 02:07 UTC]
The fix for the connection is simple.  The problem is that there are assumptions in the code that rely on TCP connections.  Trying to use a UDP connection is completely unreliable.

I will leave this ticket open until all UDP issues are fixed.
 [2012-12-24 07:38 UTC] 38184788 at qq dot com
$b = new MemcachePool;
$startTime = microtime(true);

$d = $b->get("testKey");

the result is false 

and some error
SERVER_ERROR multi-packet request not supported

what problem?
 [2017-10-24 06:59 UTC]
-Status: Assigned +Status: Open -Assigned To: hradtke +Assigned To:
 [2021-03-25 16:48 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-03-25 16:48 UTC]
The official bug tracker for PECL/memcache is now at

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-2021 The PHP Group
All rights reserved.
Last updated: Wed Apr 14 12:01:24 2021 UTC