Support test-ini also for phpize builds

Automatically generating and using test INI files is supported for
in-tree build (`buildconf`) for a long time, and this can make sense
for phpize builds too, especially when the build extension is a zend
extension, so it can be properly loaded.

Thus we make `--enable-test-ini` and `--with-test-ini-ext-exclude`
available for phpize, but default to false for full BC.

Closes GH-8787.
This commit is contained in:
Christoph M. Becker 2022-06-15 13:25:40 +02:00
parent 3264f2367d
commit c643cbf388
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6
3 changed files with 19 additions and 9 deletions

View file

@ -2087,9 +2087,7 @@ function generate_files()
}
STDOUT.WriteLine("Generating files...");
if (!MODE_PHPIZE) {
generate_tmp_php_ini();
}
generate_tmp_php_ini();
generate_makefile();
if (!MODE_PHPIZE) {
generate_internal_functions();
@ -2532,11 +2530,9 @@ function generate_makefile()
handle_analyzer_makefile_flags(MF, keys[i], val);
}
if (!MODE_PHPIZE) {
var val = "yes" == PHP_TEST_INI ? PHP_TEST_INI_PATH : "";
/* Be sure it's done after generate_tmp_php_ini(). */
MF.WriteLine("PHP_TEST_INI_PATH=\"" + val + "\"");
}
var val = "yes" == PHP_TEST_INI ? PHP_TEST_INI_PATH : "";
/* Be sure it's done after generate_tmp_php_ini(). */
MF.WriteLine("PHP_TEST_INI_PATH=\"" + val + "\"");
MF.WriteBlankLines(1);
if (MODE_PHPIZE) {