mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
fix gd check
This commit is contained in:
parent
a7d500422d
commit
62aeb6dc7b
@ -3,6 +3,5 @@
|
|||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$info = gd_info();
|
$info = gd_info();
|
||||||
$true = $info['JPEG Support'] ?? true; // JPEG support needs libjpeg library, and I will add it later. TODO
|
$true = ($true ?? true) && ($info['PNG Support'] ?? false);
|
||||||
$true = $true ? ($info['PNG Support'] ?? false) : false;
|
|
||||||
exit($true ? 0 : 1);
|
exit($true ? 0 : 1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user