Skip to content

Conversation

petk
Copy link
Member

@petk petk commented Aug 17, 2024

Since Apache 2.4.17 there is HTTPD_VERSION variable available with the apxs -q Apache extension tool itself. Here are appended two commits:

1st commit makes the PHP_AP_EXTRACT_VERSION macro obsolete

and the

2nd commit removes the PHP_AP_EXTRACT_VERSION macro.

I've quickly checked the open source extensions out there and none seem to use this macro. However, the removal can also wait for PHP 9.

I'm not sure if removing these M4 macros at this point can be done for PHP-8.4.

@Girgias
Copy link
Member

Girgias commented Aug 17, 2024

Maybe ask RMs about removing the M4 macro?

@petk petk changed the title Patch apache2handler version check Autotools: Patch apache2handler version check Aug 17, 2024
@petk petk force-pushed the patch-apache2handler-version-check branch from 7183309 to 84c3337 Compare September 8, 2024 12:04
@petk
Copy link
Member Author

petk commented Sep 8, 2024

I've rebased this branch and added only the Autoconf macro obsoletion. Version is checked in the config.m4 file directly.

@petk
Copy link
Member Author

petk commented Sep 8, 2024

I'll recheck if this works properly and merge it soon.

The apxs -q HTTPD_VERSION variable is available since Apache 2.4.17.
This change obsoletes the PHP_AP_EXTRACT_VERSION macro and checks the
version in the config.m4 file directly. Version is checked against the
dotted format instead of the version number.
@petk petk force-pushed the patch-apache2handler-version-check branch from 84c3337 to 912fecc Compare September 8, 2024 18:13
@petk petk merged commit b97a60c into php:master Sep 8, 2024
8 of 9 checks passed
@petk petk deleted the patch-apache2handler-version-check branch September 8, 2024 18:13
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