Remi Collet
8f106564e6
Merge pull request #507 from cmb69/cmb/libname
...
Adhere to standard naming convention of Windows libs for PHP
v3.2.0RC2
2022-03-09 14:54:56 +01:00
Christoph M. Becker
4694a665d2
Adhere to standard naming convention of Windows libs for PHP
...
The memcached library is usually named libmemcached.lib, so we should
check for this name, too.
2022-03-09 14:49:44 +01:00
Remi Collet
ca0d9392cb
Prepare 3.2.0RC2
2022-03-09 14:34:33 +01:00
Remi Collet
1f4b029003
[ci skip] fix windows build in changelog
2022-03-09 14:30:51 +01:00
Remi Collet
7965b8ec40
Merge pull request #497 from lifenglsf/fix_windows_php8
...
fix windows php8 php_stdint.h path
2022-03-09 14:29:08 +01:00
Remi Collet
de1a9e2da1
Merge pull request #506 from cmb69/cmb/ssize_t
...
Fix MSVC builds wrt. ssize_t
2022-03-09 14:27:25 +01:00
Christoph M. Becker
c7433c9a53
Fix MSVC builds wrt. ssize_t
...
The Windows SDK does not define `ssize_t`, so libmemcached does not
define `HAVE_SSIZE_T`. However, PHP's config.w32.h has
`#define ssize_t SSIZE_T`, so building memcached fails. We fix this by
defining `HAVE_SSIZE_T` via the extension's `CFLAGS`.
2022-03-09 14:22:40 +01:00
Remi Collet
857b8afab8
8.x is supported + libmemcached-awesome
2022-03-09 11:17:17 +01:00
Pavel Djundik
e45fef8634
Create gh_500.phpt
2022-03-07 15:37:52 +01:00
Remi Collet
5bb007e625
Prepare 3.2.0RC1
v3.2.0RC1
2022-03-07 14:51:48 +01:00
Remi Collet
d8f6f1c899
Merge pull request #488 from remicollet/issue-awesome
...
Improve phpinfo information
2022-03-07 14:33:04 +01:00
dependabot[bot]
8a5ef9ef34
Bump actions/checkout from 2 to 3 ( #505 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 13:57:02 -08:00
lfeng
082615656f
format code
2021-12-30 14:04:09 +08:00
lfeng
5a8db865c1
format code
2021-12-30 10:08:48 +08:00
lfeng
7a06230982
fix windows php8 php_stdint.h path
2021-12-29 16:24:57 +08:00
Ruud Kamphuis
d3b8ce13f1
Remove experimental for PHP 8.1 and add PHP 8.2 experimental ( #494 )
2021-11-29 10:58:58 -08:00
mszabo-wikia
60a8f9f881
Add GitHub Actions build ( #492 )
...
travis-ci.org builds have ceased, so this patch adds a GitHub Actions
workflow to build and test the extension, as well as a Dependabot
configuration file to keep the referenced actions up to date.
I've opted to slightly simplify the workflow compared to the Travis
build script. For one, I have not included libmemcached protocol
support, as most distros do not supply a libmemcached compiled with
server protocol support, and previous discussion suggests its usefulness
in the context of this extension may be limited.[1] I've also opted to
remove multiversion libmemcached testing in favor of using the system
libmemcached, as the referenced other versions seem to be old enough for
this to hopefully not be a problem. These could conceivably be
reintroduced if needed.
---
[1] https://github.com/php-memcached-dev/php-memcached/issues/418#issuecomment-449587972
2021-11-08 09:18:14 -08:00
Aaron Stone
9cd4a01d99
Merge pull request #474 from m6w6/fix-memcachedserver
...
fix MemcachedServer
2021-08-22 22:05:26 -07:00
hulk
e6df8ab3f6
FIX: store_retry_count shouldn't be set implicitly ( #452 )
...
It's wired that store commands would be auto-retry implicitly while the default value of store_retry_count was 2, as well as the timeout, would be 3 times in those store commands which may confuse users. IMHO, the retry should be set explicitly instead of implicitly.
2021-08-22 21:57:11 -07:00
Timo Tijhof
6d457155fb
Remove "failed to set key" warning from setMulti ( #490 )
...
This was introduced in https://github.com/php-memcached-dev/php-memcached/commit/6837d89494 ,
pull https://github.com/php-memcached-dev/php-memcached/pull/214 . I suspect it
may have been a left-over from debugging something. The test was later
changed in 6837d89494 to expect the warning in question, although other
similar tests don't encounter such warning currently.
It appears no other Memcached methods emit a PHP Warning when they encounter
a write read or failure. Instead, they typically turn their return value
into boolean false, and provide details via getResultMessage().
The introduction of this warning since php-memcached 3.0 has led to a number
of confused consumers (locally #260 , #409 , #450 , and more reports
within downstream issue trackers).
Closes https://github.com/php-memcached-dev/php-memcached/issues/409 .
2021-08-22 21:56:19 -07:00
Remi Collet
605a8a63a7
fix zend_dtoa API change in 8.1.0beta1 ( #487 )
2021-07-28 19:55:08 -07:00
Remi Collet
13ba74317d
Improve phpinfo information
...
- display libmemcached-awesome when used (since 1.1.1)
- display both builtime and runtime versions when different
2021-07-27 08:35:08 +02:00
Remi Collet
10f449752b
small sleep to avoid loosing message from subprocess
2021-07-23 14:55:28 +02:00
Remi Collet
2d5d4bf02f
add IPv6 test
2021-07-23 14:55:28 +02:00
Michael Wallner
4e7f20cdb0
skip test with libmemcached < 1.1.0
2021-07-23 14:55:28 +02:00
Michael Wallner
4b6c45dd23
implement stats callback suggestions by Remi
2021-07-23 14:55:28 +02:00
Michael Wallner
6dc086e721
add test files to package.xml
2021-07-23 14:55:28 +02:00
Michael Wallner
9840866332
valgrind
2021-07-23 14:55:28 +02:00
Michael Wallner
bee6b53d57
expect an array as STATS value and reply foreach key/value
2021-07-23 14:55:28 +02:00
Michael Wallner
941ae83544
add stats/version tests
2021-07-23 14:55:28 +02:00
Michael Wallner
f064f6c817
fix running the server from command line
2021-07-23 14:55:28 +02:00
Michael Wallner
0262e5c803
handle empty STATS key
2021-07-23 14:55:27 +02:00
Remi Collet
d21814e647
minor fix for version handler
2021-07-23 14:55:27 +02:00
Remi Collet
57f2999ea5
add 1 test for MemcachedServer
2021-07-23 14:55:27 +02:00
Michael Wallner
7381ce71b8
as per https://github.com/php-memcached-dev/php-memcached/pull/474#issuecomment-762934191
2021-07-23 14:55:27 +02:00
Michael Wallner
f4f724caf7
remove unused include again
2021-07-23 14:55:27 +02:00
Michael Wallner
46967cc67f
use php_network_get_peer_name
2021-07-23 14:55:27 +02:00
Michael Wallner
8ed8092c7f
fix MemcachedServer
...
related: #418 , m6w6/libmemcached#94
2021-07-23 14:55:27 +02:00
Joe Watkins
058e9f54e5
Merge branch 'master' of github.com:php-memcached-dev/php-memcached
2021-06-09 18:12:16 +02:00
Joe Watkins
8627c43f7c
Merge branch '479'
...
* 479:
Expose internal key check via checkKey() method Make ascii key check consistent with libmemcached's isgraph() check Add test to check that they match
Fix stubs to make them consistent for PHP 8
2021-06-09 18:11:30 +02:00
Rasmus Lerdorf
7be9f00779
Add test
2021-06-09 18:09:33 +02:00
Rasmus Lerdorf
7bbf4fbad3
Expose internal key check via checkKey() method Make ascii key check consistent with libmemcached's isgraph() check Add test to check that they match
2021-06-09 18:06:46 +02:00
Rasmus Lerdorf
c2a31946f0
Fix stubs to make them consistent for PHP 8
2021-06-09 18:06:46 +02:00
Joe Watkins
52a3840369
Merge pull request #486 from remicollet/issue-php81
...
Fix issue raised by PHP 8.1
2021-06-09 15:03:50 +02:00
Remi Collet
0c3f411e71
fix test for PHP 8.1
2021-06-09 15:02:20 +02:00
Remi Collet
899e4dc27c
fix test for PHP 8.1
2021-06-09 15:00:56 +02:00
Joe Watkins
51c9baf49f
fix zpp in mem_cas_impl
2021-06-09 14:58:37 +02:00
Joe Watkins
015776be90
fix incorrect zp, fixes #484
2021-06-09 14:53:43 +02:00
Arjen de Korte
19a02bb5bf
Don't expect tests/expire to fail ( #475 )
...
The issue reported in https://code.google.com/archive/p/memcached/issues/275 was fixed more than 8 years ago and the test is no longer expected to fail
2021-01-20 19:06:53 -08:00
Michael Wallner
c8f9376a8b
fix php8 arginfo ( #472 )
2021-01-18 07:34:41 -08:00