Git Product home page Git Product logo

Comments (8)

shivammathur avatar shivammathur commented on May 20, 2024 2

@sschueller

Upgraded memcached to 3.2.0 for PHP 7.0 and newer

from homebrew-extensions.

shivammathur avatar shivammathur commented on May 20, 2024 2

Fixed in 7d84794

If you get the above error,
Update the tap and reinstall igbinary, msgpack and memcached for your PHP version to fix this

For example for PHP 8.1

Then to verify the fix, please run php --ini, it should show 20-igbinary.ini, 20-msgpack.ini and 30-memcached.ini.
If you have a 20-memcached.ini, please delete that file.

from homebrew-extensions.

tft7000 avatar tft7000 commented on May 20, 2024 1

@shivammathur
I tested memcached 3.2 with php 8.0 and php 8.1 locally on MacOs 12.4 (M1). I get the following errors on php startup:

with 8.1

 PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/homebrew/opt/[email protected]/memcached.so' (tried: /opt/homebrew/opt/[email protected]/memcached.so (dlopen(/opt/homebrew/opt/[email protected]/memcached.so, 0x0009): symbol not found in flat namespace '_php_msgpack_serialize'), /opt/homebrew/lib/php/pecl/20210902//opt/homebrew/opt/[email protected]/memcached.so.so (dlopen(/opt/homebrew/lib/php/pecl/20210902//opt/homebrew/opt/[email protected]/memcached.so.so, 0x0009): tried: '/opt/homebrew/lib/php/pecl/20210902//opt/homebrew/opt/[email protected]/memcached.so.so' (no such file))) in Unknown on line 0

with 8.0 similar:

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/homebrew/opt/[email protected]/memcached.so' (tried: /opt/homebrew/opt/[email protected]/memcached.so (dlopen(/opt/homebrew/opt/[email protected]/memcached.so, 0x0009): symbol not found in flat namespace '_php_msgpack_serialize'), /opt/homebrew/lib/php/pecl/20200930//opt/homebrew/opt/[email protected]/memcached.so.so (dlopen(/opt/homebrew/lib/php/pecl/20200930//opt/homebrew/opt/[email protected]/memcached.so.so, 0x0009): tried: '/opt/homebrew/lib/php/pecl/20200930//opt/homebrew/opt/[email protected]/memcached.so.so' (no such file))) in Unknown on line 0

Am I doing something wrong? do I need to install something in addition?

from homebrew-extensions.

tft7000 avatar tft7000 commented on May 20, 2024 1

@shivammathur : I can confirm that your fix together with the update/reinstall/rm worked for php 8.0 and php 8.1.
for both I needed to remove all three old config files: rm msgpack.ini memcached.ini igbinary.ini

thanks for your work!

from homebrew-extensions.

baumannsven avatar baumannsven commented on May 20, 2024

Apple M1
Homebrew 3.5.3
OSX 12.4

I have problem with memcached by php 7.1,7.2,7.3,7.4.

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/homebrew/opt/[email protected]/memcached.so' - dlopen(/opt/homebrew/opt/[email protected]/memcached.so, 0x0009): symbol not found in flat namespace '_php_msgpack_serialize' in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/opt/homebrew/opt/[email protected]/memcached.so' - dlopen(/opt/homebrew/opt/[email protected]/memcached.so, 0x0009): symbol not found in flat namespace '_php_msgpack_serialize' in Unknown on line 0

Other php versions works fine (5.6,8.0,8.1,8.2)

from homebrew-extensions.

adampatterson avatar adampatterson commented on May 20, 2024

I am experiencing the exact same error.

Originally PHP 7.4, 8.0, and 8.1 were working.

I installed 8.2 and was not sure if something changed before or after but For 8.0 I had I fixed the error by looking at the loaded configs and saw that there was a 30-memcached.conf and a memcached.conf deleting memcached.conf and one other file that I don't remember fixed the problem.

you should see another file 20-xxxxx.conf delete the one without the 20- this is to ensure proper load order.

unfortunately, this is not the case for PHP 8.1.

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/[email protected]/memcached.so' (tried: /usr/local/opt/[email protected]/memcached.so (dlopen(/usr/local/opt/[email protected]/memcached.so, 0x0009): symbol not found in flat namespace '_igbinary_serialize'), /usr/local/lib/php/pecl/20210902//usr/local/opt/[email protected]/memcached.so.so (dlopen(/usr/local/lib/php/pecl/20210902//usr/local/opt/[email protected]/memcached.so.so, 0x0009): tried: '/usr/local/lib/php/pecl/20210902//usr/local/opt/[email protected]/memcached.so.so' (no such file))) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/[email protected]/memcached.so' (tried: /usr/local/opt/[email protected]/memcached.so (dlopen(/usr/local/opt/[email protected]/memcached.so, 0x0009): symbol not found in flat namespace '_igbinary_serialize'), /usr/local/lib/php/pecl/20210902//usr/local/opt/[email protected]/memcached.so.so (dlopen(/usr/local/lib/php/pecl/20210902//usr/local/opt/[email protected]/memcached.so.so, 0x0009): tried: '/usr/local/lib/php/pecl/20210902//usr/local/opt/[email protected]/memcached.so.so' (no such file))) in Unknown on line 0
PHP 8.1.8 (cli) (built: Jul  8 2022 10:58:31) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.8, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.8, Copyright (c), by Zend Technologies
    with Xdebug v3.1.4, Copyright (c) 2002-2022, by Derick Rethans

from homebrew-extensions.

shivammathur avatar shivammathur commented on May 20, 2024

@adampatterson

Please run

brew reinstall [email protected]

Then check for ini files for PHP 8.1 in $(brew --prefix)/etc/php/8.1/conf.d directory.
it should show 20-igbinary.ini, 20-msgpack.ini, and 30-memcached.ini.
If you have a 20-memcached.ini or a memcached.ini, please delete those.

same for other versions if you have them installed.

from homebrew-extensions.

adampatterson avatar adampatterson commented on May 20, 2024

@shivammathur It's working now! My error was not restarting FPM but only restarting NGINX.

Thanks for the help and quick reply!

from homebrew-extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.