[php-src] PR #14835: Autotools: Refactor buitin checks
| From: | petk | Date: | Fri, 05 Jul 2024 18:58:06 +0000 |
| Subject: | [php-src] PR #14835: Autotools: Refactor buitin checks | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27068@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14835
Author: petk
This creates a single M4 macro PHP_CHECK_BUILTIN with passed arguments.
Here are some issues but not so much problematic I think. These
PHP_HAVE_BUILTIN_* are
defined to 0 or to 1. So all the current checks with #ifdef PHP_HAVE_BUILTIN_* are
probably typos in the php-src. I'm not sure if it was intentional to use #ifdef anywhere to
explicitly target *nix or Windows with these.
I think it might be easiest to change them to an undefined/1 style (like other Autoconf defined CPP
macros) so they don't need to be defined on Windows to 0. Sounds good?