You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: I'm don't think anything actually needs to be done here, but I'm opening this issue for the discussion (see the additional context at the bottom), and to help anyone else who may be having the same issue and hunting for the cause.
Since the latest php-memcached 3.1.5 release (3.1.5+2.2.0-4), we have started receiving the following E_NOTICE errors: Declaration of MyNamespace\\MyMemcached::addServers(array $servers) should be compatible with Memcached::addServers($servers). From further investigation, this has likely originated from this commit, which added in some PHP 8.0 patches.
There's already a discussion about the actual E_NOTICE error at php-memcached-dev/php-memcached#464. However, I have a couple of questions specific to these packages:
To temporarily fix the issue this caused us, we explored installing an older version of the package, but there don't seem to be any available. Are older versions of these packages available somewhere?
I don't know a great deal about Linux packaging, but the upstream change (php-memcached-dev/php-memcached@e8f5377) strikes me as something that will be released in a future php-memcached version (not an extension of 3.1.5). Were these patches only supposed to be applied to the PHP 8 packages to get PHP 8 support working?
The text was updated successfully, but these errors were encountered:
To temporarily fix the issue this caused us, we explored installing an older version of the package, but there don't seem to be any available. Are older versions of these packages available somewhere?
No, but you can always fix your code. Or compile the older extension yourself.
I don't know a great deal about Linux packaging, but the upstream change (php-memcached-dev/php-memcached@e8f5377) strikes me as something that will be released in a future php-memcached version (not an extension of 3.1.5). Were these patches only supposed to be applied to the PHP 8 packages to get PHP 8 support working?
No, not really. That would be true only if the patched extension would be incompatible with the old PHP releases.
Frequently asked questions
Describe the bug
Note: I'm don't think anything actually needs to be done here, but I'm opening this issue for the discussion (see the additional context at the bottom), and to help anyone else who may be having the same issue and hunting for the cause.
Since the latest php-memcached 3.1.5 release (3.1.5+2.2.0-4), we have started receiving the following
E_NOTICE
errors:Declaration of MyNamespace\\MyMemcached::addServers(array $servers) should be compatible with Memcached::addServers($servers)
. From further investigation, this has likely originated from this commit, which added in some PHP 8.0 patches.To Reproduce
Steps to reproduce the behavior:
\Memcached
and implements theaddServers
method with a signature ofaddServers(array $servers)
.Expected behavior
No
E_NOTICE
error occurs.Distribution (please complete the following information):
Package(s) (please complete the following information):
Additional context
There's already a discussion about the actual
E_NOTICE
error at php-memcached-dev/php-memcached#464. However, I have a couple of questions specific to these packages:php-memcached
version (not an extension of 3.1.5). Were these patches only supposed to be applied to the PHP 8 packages to get PHP 8 support working?The text was updated successfully, but these errors were encountered: