Open DavidGarciaCat opened 7 years ago
OK, please first updated Prophecy to 1.6.2. The 1.4.1 version is really old, and I won't provide debugging for it (we already fixed many things since then)
please give the version of the PHP memcached extension, not of the memcached server (we don't care about it here as it does not provide PHP code). You can have this version in phpinfo()
, and also in composer show -p
if the extension exposes it properly
Hello @stof
I updated prophecy, as requested. However the error is still there.
$ composer update phpspec/prophecy
$ composer show *prophecy*
phpspec/prophecy v1.6.2 Highly opinionated mocking framework for PHP 5.3+
About the PHP Memcached version, these are the details (this is the latest version I can install via Homebrew - I checked yesterday if there were packages to upgrade):
$ composer show -p | grep memcached
ext-memcached 2.2.0 The memcached PHP extension
Hope this helps,
This is probably caused by https://github.com/php-memcached-dev/php-memcached/issues/126 and https://bugs.php.net/bug.php?id=66331
Thanks for those links @jakzal
This should confirm the outputs that I am getting, indeed. Also, after a quick read, looks like there are no upcoming plans to fix it from Memcached side due those outputs are not breaking the system. That's sad...
Based on my previous issue, reported here https://github.com/phpspec/phpspec/issues/1053, looks like the
Memcached
mock forgetByKey
(and other methods) does not match the signature of the parent class.My local environment is built with these specs:
PHP
version:Installed
PHP Spec
version:Installed
Prophecy
version:Memcached
versionHope it helps to find the problem!
Regards,