mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Add extension test
This commit is contained in:
parent
c53f1d947c
commit
17c27cb7e8
6
src/globals/ext-tests/iconv.php
Normal file
6
src/globals/ext-tests/iconv.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
assert(function_exists('iconv'));
|
||||
assert(iconv('UTF-8', 'CP437', 'foo') === 'foo');
|
||||
@ -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`).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user