Skip to content

Remove PHP atomic includes and PHP_DEFINE M4 macro #13372

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
Feb 11, 2024

Conversation

petk
Copy link
Member

@petk petk commented Feb 11, 2024

PHP_DEFINE was introduced with the PHP 5 build system 9d9d39a and then refactored via 350de12.

This was once used to put defined constants into a single file to have more fine-graned dependencies (atomic includes). Since no known PHP extension is using this and it makes very little sense to use this, this M4 macro can be removed in favor of the Autoconf native way using AC_DEFINE and the usual included files php_config.h and config.h.

  • Generated unused include directory removed
  • Remove include dir from DEFS
  • Remove also include dir from PDO checks

Continuing from #4360

PHP_DEFINE was introduced with the PHP 5 build system
9d9d39a and then refactored via
350de12.

This was once used to put defined constants into a single file to have
more fine-graned dependencies (atomic includes). Since no known PHP
extension is using this and it makes very little sense to use this, this
M4 macro can be removed in favor of the Autoconf native way using
AC_DEFINE and the usual included files php_config.h and config.h.

- Generated unused include directory removed
- Remove include dir from DEFS
- Remove also include dir from PDO checks
@petk petk force-pushed the patch-autoconf-remove-php-define branch from 1003049 to 32c2a85 Compare February 11, 2024 18:46
@petk petk merged commit eb76a83 into php:master Feb 11, 2024
@petk petk deleted the patch-autoconf-remove-php-define branch February 11, 2024 21:14
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.

None yet

2 participants