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: 2013-01-04 03:39 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: 38184788 at qq dot com Assigned:
Status: Open Package: memcache (PECL)
PHP Version: 5.3.20 OS: debain
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Nov 14 06:01:35 2019 UTC