Skip to content

Autotools: Refactor IMAP build tests #11

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
Sep 9, 2024
Merged

Conversation

petk
Copy link
Member

@petk petk commented Sep 8, 2024

  • The PHP_TEST_BUILD replaced with AC_LINK_IFELSE
  • The PHP_IMAP_TEST_BUILD macro had a minor unnoticeable bug where the 5th argument was always empty and the non-existing 6th argument was passed into PHP_TEST_BUILD macro instead.

- The PHP_TEST_BUILD replaced with AC_LINK_IFELSE
- The PHP_IMAP_TEST_BUILD macro had a minor unnoticeable bug where the
  5th argument was always empty and the non-existing 6th argument was
  passed into PHP_TEST_BUILD macro instead.
petk added a commit to petk/php-src that referenced this pull request Sep 8, 2024
The PHP_BUILD_THREAD_SAFE macro is a simple wrapper around setting the
enable_zts variable and can't be used in PHP extensions realistically.

The PHP_TEST_BUILD macro might produce warnings on certain compiler
configurations and default AC_* macros like AC_LINK_IFELSE,
AC_CHECK_LIB, or AC_CHECK_FUNC are better suited for such checks. Also,
a quick browse through the open-source PHP extensions doesn't find
usages of this macro except in imap extension where patch is was already
sent:
php/pecl-mail-imap#11
petk added a commit to petk/php-src that referenced this pull request Sep 8, 2024
…F_HAVE

The PHP_BUILD_THREAD_SAFE macro is a simple wrapper around setting the
enable_zts variable and can't be used in PHP extensions realistically.

The PHP_TEST_BUILD macro might produce warnings on certain compiler
configurations and default AC_* macros like AC_LINK_IFELSE,
AC_CHECK_LIB, or AC_CHECK_FUNC are better suited for such checks. Also,
a quick browse through the open-source PHP extensions doesn't find
usages of this macro except in imap extension where patch is was already
sent:
php/pecl-mail-imap#11

PHP_DEF_HAVE is a wrapper around AC_DEFINE and using AC_DEFINE_UNQUOTED
and AS_TR_CPP are better suited for this task where also help text can
be passed.
petk added a commit to php/php-src that referenced this pull request Sep 8, 2024
…F_HAVE (#15802)

The PHP_BUILD_THREAD_SAFE macro is a simple wrapper around setting the
enable_zts variable and can't be used in PHP extensions realistically.

The PHP_TEST_BUILD macro might produce warnings on certain compiler
configurations and default AC_* macros like AC_LINK_IFELSE,
AC_CHECK_LIB, or AC_CHECK_FUNC are better suited for such checks. Also,
a quick browse through the open-source PHP extensions doesn't find
usages of this macro except in imap extension where patch is was already
sent:
php/pecl-mail-imap#11

PHP_DEF_HAVE is a wrapper around AC_DEFINE and using AC_DEFINE_UNQUOTED
and AS_TR_CPP are better suited for this task where also help text can
be passed. Usages in the open source PHP extensions have been checked and
patches sent where found.
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.

Looks reasonable

@Girgias Girgias merged commit 7568174 into php:main Sep 9, 2024
@petk petk deleted the patch-PHP_TEST_BUILD branch September 9, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants