mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 05:14:52 +08:00
9 lines
170 B
PHP
9 lines
170 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
$info = gd_info();
|
||
|
|
$true = $info['JPEG Support'] ?? false;
|
||
|
|
$true = $true ? ($info['PNG Support'] ?? false) : false;
|
||
|
|
exit($true ? 0 : 1);
|