1

我想在运行在 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 支持?

4

2 回答 2

0

感谢您的报告!我们刚刚发布了一个新的基础镜像,因此php.ini您只需要一个小文件。

于 2017-03-22T05:42:48.977 回答
0

解决了。他们在存储库中进行了新的提交。

https://github.com/GoogleCloudPlatform/php-docker/issues/233

于 2017-03-19T06:51:01.287 回答