php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63843 can't use udp
Submitted: 2012-12-24 08:00 UTC Modified: 2021-03-25 16:45 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: 38184788 at qq dot com Assigned: cmb (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.3.20 OS: debain
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: 38184788 at qq dot com
New email:
PHP Version: OS:

 

 [2012-12-24 08:00 UTC] 38184788 at qq dot com
Description:
------------
$b = new MemcachePool;
$startTime = microtime(true);

$b->connect("udp://127.0.0.1",16222);
$d = $b->get("testKey");

var_dump($d);
====================
the result is false 

and some error
SERVER_ERROR multi-packet request not supported

what problem?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-30 13:56 UTC] ultimate_tux at gmail dot com
I believe client side UDP support isn't already implemented yet!
 [2013-01-02 01:17 UTC] 38184788 at qq dot com
i use php memcache 3.0 to connect server memcached,it had support udp that i read the document
 [2013-01-04 02:18 UTC] hradtke@php.net
There is no UDP support from the php side. The memcached daemon does support udp. 
You can try pecl/memcached.
 [2013-01-04 03:39 UTC] 38184788 at qq dot com
i use memcached  2.1
code:
$memcached = new Memcached();
$memcached->setOption(Memcached::OPT_BINARY_PROTOCOL, true);
$memcached->setOption(Memcached::OPT_USE_UDP, true);
$memcached->addServer('127.0.0.1', 16222);

result :  not work a normal

but i find the request did't came to the server when use tcpdump trace
if use tcp all is normal
 [2021-03-25 16:45 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-03-25 16:45 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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 16:01:27 2025 UTC