S
S
Stanislav2020-12-02 21:35:28
PHP
Stanislav, 2020-12-02 21:35:28

Why is the \Memcached() class not found, although the php_memcache.dll library is included?

Given:

  • php7.4
  • Symfony 5.x
  • Windows 10
  • phpstorm 2020.x
  • PhpUnit 9.x


I'm trying to run tests locally, on my machine. At first, everything is fine, the test starts, gets to the point of execution, we try to go further. The test is functional, that is, it uses the framework fully, the only BUT is that it simulates a connection via HTTP (s). And at that moment the test fails with an error:

Error : Class 'Memcached' not found


Somewhere in the wilds of the container. Clear business, does not find the given class. But the problem is that the 'php_memcache.dll' library has been added to php.ini, the interpreter for which it is configured is correctly selected in the IDE, and viewing the output of phpinfo () gives this:


memcache.allow_failover
1
memcache.chunk_size
32768
memcache.compress_threshold
20000
memcache.default_port
11211
memcache.hash_function
crc32
memcache.hash_strategy
consistent
memcache.lock_timeout
15
memcache.max_failover_attempts
20
memcache.prefix_host_key
0
memcache.prefix_host_key_remove_subdomain
0
memcache.prefix_host_key_remove_www
1
memcache.prefix_static_key

memcache.protocol
ascii
memcache.redundancy
1
memcache.session_prefix_host_key
0
memcache.session_prefix_host_key_remove_subdomain
0
memcache.session_prefix_host_key_remove_www
1
memcache.session_prefix_static_key

memcache.session_redundancy
2
memcache.session_save_path


That is, everything seems to work as it should, but it does not work. Tell me what I could be missing? In what direction to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Immortal_pony, 2020-12-02
@lamo4ok

memcache and memcache d are different things.
php_memcache.dll is not related to class \Memcache d

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question