Skip to content

Use AC_SUBST instead of PHP_SUBST_OLD where possible #13993

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
Apr 18, 2024

Conversation

petk
Copy link
Member

@petk petk commented Apr 18, 2024

The PHP_SUBST_OLD adds variables to generated Makefile and creates output shell variables to replace the @variable_name@ placeholders in templates. These changed variables are not used in the generated Makefile so the AC_SUBST is sufficient.

  • ext/odbc
  • sapi/embed
  • sapi/fpm
  • only substituted in scripts/php-config.in:
    • PHP_INSTALLED_SAPIS
    • SAPI_LIBNAME_SHARED
    • SAPI_LIBNAME_STATIC

The PHP_SUBST_OLD adds variables to generated Makefile and creates
output shell variables to replace the @variable_name@ placeholders in
templates. These changed variables are not used in the generated
Makefile so the AC_SUBST is sufficient.

- ext/odbc
- sapi/embed
- sapi/fpm
- only substituted in scripts/php-config.in:
  - PHP_INSTALLED_SAPIS
  - SAPI_LIBNAME_SHARED
  - SAPI_LIBNAME_STATIC
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

Makes sense

@petk petk merged commit 6fed6d8 into php:master Apr 18, 2024
@petk petk deleted the patch-ac-subst branch April 18, 2024 20:17
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