Skip to content

Add hack to force mysqlnd extension to be loaded first to avoid missing symbol errors. #9822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Danack
Copy link
Contributor

@Danack Danack commented Oct 24, 2022

Addresses #9727

@Danack
Copy link
Contributor Author

Danack commented Oct 24, 2022

btw, does anyone know where a message can be added to ./configure output ?

The issue is that when mysqlnd and mysqli are loaded as shared modules, the order matters, which is not obvious to end-users.

@Danack
Copy link
Contributor Author

Danack commented Oct 24, 2022

Forgot to say, the behaviour can be seen by

./configure \
--without-iconv \
--without-pcre-jit \
--without-pear \
--without-sqlite3 \
--without-pdo-sqlite \
--enable-mysqlnd=shared \
--with-mysqli=shared,mysqlnd \
--with-pdo-mysql=shared,mysqlnd

And then run make test.

Without the patch the tests fail due to being unable to load the mysqli and pdo_mysql extensions.

Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your approach is fine too.

Co-authored-by: Markus Staab <maggus.staab@googlemail.com>
@morrisonlevi
Copy link
Contributor

How many symbols are we talking about, by the way? I think having optional zend module dependencies with runtime resolution of symbols should fix this properly in core, but I haven't dug in to see.

@Danack
Copy link
Contributor Author

Danack commented Oct 31, 2022

How many symbols are we talking about, by the way?

No idea. Loading the .so file fails on the first missing symbol.

I think having optional zend module dependencies with runtime resolution of symbols should fix this properly in core

tbh, I have no idea what you mean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants