add some tests and iconv support

This commit is contained in:
crazywhalecc
2023-04-03 21:27:50 +08:00
parent 1731cc1202
commit 29e0269588
6 changed files with 70 additions and 7 deletions

8
src/globals/tests/gd.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
$info = gd_info();
$true = $info['JPEG Support'] ?? false;
$true = $true ? ($info['PNG Support'] ?? false) : false;
exit($true ? 0 : 1);