Open DaFox opened 2 years ago
The problem is, that passing NULL as the second argument to memcache_connect() is deprecated in PHP 8.1 and triggers an error during the tests. I managed to run the tests using the following patch.
As you said, https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg deprecated it deliberately. Possible solutions: The arginfo can be changed to make it nullable, or the test can be changed - https://www.php.net/manual/en/memcache.addserver.php already documents that 0 should be passed, not null
After updating to PHP 8.1 test 035 using a local memcached with domain sockets fails.
Build
Result
The problem is, that passing NULL as the second argument to memcache_connect() is deprecated in PHP 8.1 and triggers an error during the tests. I managed to run the tests using the following patch.
Workaround
However, i guess that the whole test-case should be removed or only be executed conditionally.