Skip to content

Commit 8da24ec

Browse files
committed
Initial upstream merge for php8.1
1 parent 39dae2d commit 8da24ec

26 files changed

+1878
-548
lines changed

config.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ PHP_ARG_ENABLE(memcached-protocol, whether to enable memcached protocol support,
2828
[ --enable-memcached-protocol Enable memcached protocol support], no, no)
2929

3030
PHP_ARG_WITH(system-fastlz, whether to use system FastLZ library,
31-
[ --with-system-fastlz Use system FastLZ library], no, no)
31+
[ --with-system-fastlz Use system FastLZ library], no, no)
3232

3333
if test -z "$PHP_ZLIB_DIR"; then
3434
PHP_ARG_WITH(zlib-dir, for ZLIB,

config.w32

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG_ENABLE('memcached-json', 'whether to enable memcached json serializer suppor
88

99
if (PHP_MEMCACHED == "yes") {
1010

11-
if (!CHECK_LIB("memcached.lib", "memcached", PHP_MEMCACHED)) {
11+
if (!CHECK_LIB("memcached.lib;libmemcached.lib", "memcached", PHP_MEMCACHED)) {
1212
ERROR("memcached: library 'memcached' not found");
1313
}
1414

@@ -36,7 +36,7 @@ if (PHP_MEMCACHED == "yes") {
3636
}
3737
}
3838

39-
EXTENSION("memcached", "php_memcached.c php_libmemcached_compat.c g_fmt.c"+memcached_extra_src);
39+
EXTENSION("memcached", "php_memcached.c php_libmemcached_compat.c g_fmt.c"+memcached_extra_src, null, " /DHAVE_SSIZE_T");
4040
ADD_SOURCES(configure_module_dirname+"\\fastlz", "fastlz.c", "memcached");
4141
AC_DEFINE("HAVE_MEMCACHED", 1, "memcached support");
4242
AC_DEFINE("MEMCACHED_EXPORTS", 1)

g_fmt.c

+7-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,17 @@
2727
* // Teddy Grenman <[email protected]>, 2010-05-18.
2828
*/
2929

30-
#include <zend_operators.h>
30+
#include <php.h>
3131

3232
char *php_memcached_g_fmt(register char *b, double x) {
3333
register int i, k;
3434
register char *s;
35-
int decpt, j, sign;
35+
int decpt, j;
36+
#if PHP_VERSION_ID < 80100
37+
int sign;
38+
#else
39+
bool sign;
40+
#endif
3641
char *b0, *s0, *se;
3742

3843
b0 = b;

memcached.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
; Write data to a number of additional memcached servers
6262
; This is "poor man's HA" as libmemcached calls it.
63-
; If this value is positive and sess_remove_failed is enabled
63+
; If this value is positive and sess_remove_failed_servers is enabled
6464
; when a memcached server fails the session will continue to be available
6565
; from a replica. However, if the failed memcache server
6666
; becomes available again it will read the session from there

package.xml

+13-2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ Fixes
5959
<file role='src' name='config.w32'/>
6060
<file role='src' name='php_memcached.c'/>
6161
<file role='src' name='php_memcached.h'/>
62+
<file role='src' name='php_memcached.stub.php'/>
63+
<file role='src' name='php_memcached_arginfo.h'/>
64+
<file role='src' name='php_memcached_legacy_arginfo.h'/>
6265
<file role='src' name='php_memcached_private.h'/>
6366
<file role='src' name='php_memcached_session.c'/>
6467
<file role='src' name='php_memcached_session.h'/>
@@ -84,6 +87,7 @@ Fixes
8487
<file role='test' name='cas_multi.phpt'/>
8588
<file role='test' name='check_if_persistent.phpt'/>
8689
<file role='test' name='check_if_pristine.phpt'/>
90+
<file role='test' name='check_key.phpt'/>
8791
<file role='test' name='clone.phpt'/>
8892
<file role='test' name='compression_conditions.phpt'/>
8993
<file role='test' name='compression_types.phpt'/>
@@ -100,6 +104,7 @@ Fixes
100104
<file role='test' name='gh_21.phpt'/>
101105
<file role='test' name='gh_77.phpt'/>
102106
<file role='test' name='gh_90.phpt'/>
107+
<file role='test' name='gh_500.phpt'/>
103108
<file role='test' name='invoke_callback.phpt'/>
104109
<file role='test' name='invoke_callback_2.phpt'/>
105110
<file role='test' name='invoke_callback_twice.phpt'/>
@@ -134,10 +139,13 @@ Fixes
134139
<file role='test' name='types_php_multi.phpt'/>
135140
<file role='test' name='undefined_set.phpt'/>
136141
<file role='test' name='vbucket.phpt'/>
142+
<file role='test' name='vbucket_error_7.phpt'/>
143+
<file role='test' name='vbucket_error_8.phpt'/>
137144
<file role='test' name='user-flags.phpt'/>
138145
<file role='test' name='gh_93.phpt'/>
139146
<file role='test' name='add.phpt'/>
140147
<file role='test' name='bad_construct.phpt'/>
148+
<file role='test' name='bad_construct_8.phpt'/>
141149
<file role='test' name='append.phpt'/>
142150
<file role='test' name='prepend.phpt'/>
143151
<file role='test' name='replace.phpt'/>
@@ -167,8 +175,11 @@ Fixes
167175
<file role='test' name='stats_hang.phpt'/>
168176
<file role='test' name='default_behavior.phpt'/>
169177
<file role='test' name='reset_keyprefix.phpt'/>
170-
<file role='test' name='session_lock-php71.phpt'/>
171-
<file role='test' name='tls_basic.phpt'/>
178+
<file role='test' name='session_lock-php71.phpt'/>
179+
<file role='test' name='server.inc'/>
180+
<file role='test' name='server.php'/>
181+
<file role='test' name='memcachedserver.phpt'/>
182+
<file role='test' name='memcachedserver6.phpt'/>
172183
</dir>
173184
</dir>
174185
</contents>

0 commit comments

Comments
 (0)