Add extension test

This commit is contained in:
crazywhalecc 2024-08-11 21:25:10 +08:00 committed by Jerry Ma
parent c53f1d947c
commit 17c27cb7e8
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
<?php
declare(strict_types=1);
assert(function_exists('iconv'));
assert(iconv('UTF-8', 'CP437', 'foo') === 'foo');

View File

@ -20,7 +20,7 @@ $upx = true;
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
$extensions = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'iconv',
'Windows' => 'amqp,apcu',
'Windows' => 'amqp,apcu,iconv',
};
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).