我想在运行在 Google App Engine PHP 柔性环境上的 php 应用程序中使用 imagettfbbox 函数,因此我已阅读此文档(https://cloud.google.com/appengine/docs/flexible/php/runtime#dependencies)并添加
extension=gd.so
到我的 php.ini 文件,我得到这个错误。
2017/03/18 10:06:34 [error] 59#0: *7 FastCGI sent in stderr: "PHP message: [2017-03-18 19:06:34] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined function App\Managers\imagettfbbox()
当我在部署的应用程序中检查 php.info 时,我可以看到 GD 已启用,但我找不到 FreeType 列,所以我认为我的应用程序中未启用 FreeType。
如何启用对 GD 的 FreeType 支持?