php-memcached-dev / php-memcached

memcached extension based on libmemcached library
Other
990 stars 323 forks source link

Support for PHP 8.1.7 #527

Closed bert126 closed 1 year ago

bert126 commented 1 year ago

Are you planning to support PHP 8.1.7 soon?

3.2.0 is working well under our PHP 7.x and PHP 8.1.0 Windows servers but it's impossible to make it work under PHP 8.1.7 (Unable to load dynamic library - The specified module could not be found).

Same behavior on DEVs machines.

sodabrew commented 1 year ago

There are no new compatibility issues that I'm aware of with 8.1.x for any new x, I strongly recommend that you try to narrow down your build problem to see if there is something there.

bert126 commented 1 year ago

I wonder if it might be a problem with the underlying libmemcached.dll. Does it have to be installed in a specific way (regsrv32) on Windows?

bert126 commented 1 year ago

I got it. the two DLLs (libmemcached.dll and libhashkit.dll) must be copied under c:\windows. No regsrv32 needed.

Might be useful to specify it in the readme for the next ones using it with a Windows server.

sodabrew commented 1 year ago

I generally wouldn't recommend putting all of your application DLLs into the Windows dir. You can set the DLLPATH for your web server application to an appropriate deployment directory.

Here is some documentation that may help: https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order

bert126 commented 1 year ago

You are right! I will tell my sysadmin to create a dedicated directory and add it to the %PATH%