Skip to content

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.

2 participants