There are a lot of pictures to process now, but I found that when writing gd functions in cli mode, an error is reported, that is, the gd-related functions are all undefined.
How to install the gd library or modify the configuration in this case?
PS: The gd library can be used in cgi mode.
There are a lot of pictures to process now, but I found that when writing gd functions in cli mode, an error is reported, that is, the gd-related functions are all undefined.
How to install the gd library or modify the configuration in this case?
PS: The gd library can be used in cgi mode.
Executephp --ini
See if the configuration used by php-cli is the same as php-cgi. Using the same one should ensure that php-cli can also load the PECL module of php-cgi. Or find gd directly Module, load it explicitly in the configuration: extension=php_gd.so
phpize