Comments (2)
To add a UDP memcached server php-memcached uses the code below:
if (host[0] == '/') { /* unix domain socket */
status = memcached_server_add_unix_socket_with_weight(m_obj->memc, host, weight);
} else if (memcached_behavior_get(m_obj->memc, MEMCACHED_BEHAVIOR_USE_UDP)) {
status = memcached_server_add_udp_with_weight(m_obj->memc, host, port, weight);
} else {
The function memcached_server_add_udp_with_weight() has been deprecated and does not add the server since libmemcached 1.0.2. You can see that in this diff:
http://bazaar.launchpad.net/~tangent-trunk/libmemcached/1.0/revision/968#libmemcached/hosts.cc
If you use an older version of libmemcached like 0.54 that might be able to solve your problem until a code update is made to php-memcached.
You can see function is deprecated with this code:
setOption(Memcached::OPT_BINARY_PROTOCOL, 1); $b->setOption(Memcached::OPT_USE_UDP, 1); $b->addServer("localhost",11211); echo $b->getResultMessage(); ?>OUTPUT:
DEPRECATED
If I get some time I might take a stab at fixing this problem.
from php-memcached.
why the function memcached_server_add_udp_with_weight() has been deprecated ? is it had some performance problem?
from php-memcached.
Related Issues (20)
- Incorrect PHP reflection type for Memcached::cas $cas_token HOT 1
- Release 3.2.1 HOT 8
- Support for PHP 8.1.7 HOT 5
- get returns random values when lower than default OPT_POLL_TIMEOUT is set HOT 42
- When using sasl return false
- What is $udf_flags in memcached-api.php?
- Use memcache on wordpress with php 8.1 HOT 2
- Installing in docker, with apache + php-7.4 | GC_REFCOUNT HOT 3
- Problem stored float value in PHP 8.1/8.2 HOT 1
- pickle.phar installation of memcached doesn't work anymore as of PHP 8.1.20 and PHP 8.2.7 HOT 3
- OPT_NOREPLY: touch() stuck forever
- Suspicion of php-memcached bug regarding persistent sessions resulting in rare cases of session mixup
- No updated DLL version available HOT 3
- please help install php 8.0 memcache in docker HOT 1
- Undocumented 3.2.0 change: non-ascii keys no longer supported. HOT 10
- PHP 8.3 HOT 1
- Release zstd support
- memcached.so: php_msgpack_serialize: symbol not found HOT 2
- memcached returns wrong values.
- get/getMulti return RES_NOTFOUND after buffered increment with result RES_UNKNOWN_READ_FAILURE with OPT_BINARY_PROTOCOL HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-memcached.