Skip to content

Refactor fopencookie check #14346

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 2 commits into from
May 30, 2024
Merged

Refactor fopencookie check #14346

merged 2 commits into from
May 30, 2024

Conversation

petk
Copy link
Member

@petk petk commented May 28, 2024

  • This checks for a type cookie_io_functions_t and defines the HAVE_FOPENCOOKIE based on type check result and the fopencookie() function presence.
  • Fixed -Wunused... warnings in config.log on stricter compiler configurations
  • The run check for off64_t is wrapped into AC_CACHE_CHECK for having the php_cv_type_cookie_off64_t cache variable available to customize possible cross-compilation edge cases
  • Comment about glibcs 2.1.2 removed because also some other earlier versions provided this type already

- This checks for a type cookie_io_functions_t and defines the
  HAVE_FOPENCOOKIE based on type check result and the fopencookie()
  function presence.
- Fixed -Wunused... warnings in config.log on stricter compiler
  configurations
- The run check for off64_t is wrapped into AC_CACHE_CHECK for having
  the php_cv_type_cookie_off64_t cache variable available to customize
  possible cross-compilation edge cases
- Comment about glibcs 2.1.2 removed because also some other earlier
  versions provided this type already
@petk
Copy link
Member Author

petk commented May 28, 2024

I'll recheck this if this even needs a run check in the first place or if maybe it can be done with AC_CHECK_COMPILE...

@petk petk marked this pull request as draft May 28, 2024 16:59
@petk petk marked this pull request as ready for review May 28, 2024 21:00
@petk
Copy link
Member Author

petk commented May 28, 2024

Let's leave this run check then here for now. It can be probably simplified in the future to only check for off64_t type but it's not so certain in case some C library will have the off64_t but this seeker might be using different definition.

@petk petk merged commit 471aa11 into php:master May 30, 2024
9 of 10 checks passed
@petk petk deleted the patch-fopencookie branch May 30, 2024 12:56
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