Skip to content

Sync --enable-mysqlnd-compression-support option #12006

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

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

petk
Copy link
Member

@petk petk commented Aug 20, 2023

This syncs the style of the --enable-mysqlnd-compression-support option name, otherwise in Autoconf both --enable-foo_bar and --enable-foo-bar work.

Also the configure output message is synced to match the check information.

Instead of this:

./configure --enable-mysqlnd
# ...
# checking whether to disable compressed protocol support in mysqlnd... yes
# ...

this reads a bit better:

./configure --enable-mysqlnd
# ...
# checking whether to enable compressed protocol support in mysqlnd... yes
# ...

This syncs the style of the --enable-mysqlnd-compression-support option
name, otherwise in Autoconf both --enable-foo_bar and --enable-foo-bar
work.

Also the configure output message is synced to match the check
information.
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

This will need an entry in UPGRADING

@petk
Copy link
Member Author

petk commented Aug 20, 2023

With this change this will still work though:
--enable-mysqlnd_compression_support
which will set the same variable as this one:
--enable-mysqlnd-compression-support

And the configuration will be also the same.

The output text is misleading though. It is checking to enable it.

So, even if someone is out there using the --enable-mysqlnd_compression_support option, they will still have it working even after this patch.

@Girgias
Copy link
Member

Girgias commented Aug 20, 2023

Ah, okay then, I don't understand build systems

@petk petk merged commit 9026596 into php:master Aug 21, 2023
@petk petk deleted the patch-autoconf-sync-mysqlnd-option-style branch August 21, 2023 14:38
jorgsowa pushed a commit to jorgsowa/php-src that referenced this pull request Aug 24, 2023
This syncs the style of the --enable-mysqlnd-compression-support option
name, otherwise in Autoconf both --enable-foo_bar and --enable-foo-bar
work.

Also the configure output message is synced to match the check
information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants