【发布时间】:2017-03-19 04:27:42
【问题描述】:
我想在我的运行在 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 支持?
【问题讨论】:
标签: php google-app-engine gd freetype google-app-engine-php