[php-src] PR #16398: Move ARG_ENABLE() "macros" out of confutils.js

From: Date: Sat, 12 Oct 2024 13:49:57 +0000
Subject: [php-src] PR #16398: Move ARG_ENABLE() "macros" out of confutils.js
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29186@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16398 Author: cmb69 While these "macros" work perfectly fine in confutils, it is somewhat strange to have these two there, while all others are in config.w32 files. In particular, there is no need for a MODE_PHPIZE guard, since there are already config.w32 and config.w32.phpize.in. However, we need to replace the semicolon the helptext, because the regex which parses ARG_(ENABLE|WITH) calls is restricted, and does not accept semicolons. --- Note that I considered fixing the mentioned regex: https://github.com/php/php-src/blob/18ab3b9e6dc546157d8670105f154331a16663db/win32/build/buildconf.js#L232 which doesn't do what it is supposed to do (the backslashes are consumed by the JScript string parser, so the parens are just grouping; a final semicolon is optional in JScript), but then saw https://github.com/php/pecl-console-termbox/blob/02a7c1c0a05614bd42e9d624aeda3be90d476f3a/config.w32, which works perfectly fine, although ARG_ENABLE() and ARG_WITH() are commented out. It would not work, though, if the comments were C-style comments.

« previous php.git-pulls (#29186) next »