Google App Engine - mcrypt.so - 第 0 行未知中没有此类文件或目录

Google App Engine - mcrypt.so - No such file or directory in Unknown on line 0

我在 Google App Engine (Standard Env) 上有一个 Laravel 4.2 App 运行,并且每隔一分钟左右我就会收到一个 500 返回并记录以下错误。请求是从数据库返回的小对象。

知道为什么它会如此零星吗?据我所知,没有任何东西将错误指向特定的 method/route。我是一个新的 GAE 用户,非常感谢任何帮助。谢谢!

PHP Warning: PHP Startup: Unable to load dynamic library '/base/alloc/tmpfs/dynamic_runtimes/php55_dynamic/230a19aa4cd01ca1/modules/mcrypt.so' - /base/alloc/tmpfs/dynamic_runtimes/php55_dynamic/230a19aa4cd01ca1/modules/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0

PHP.INI:

google_app_engine.enable_functions = "php_sapi_name, php_uname, getmypid, set_time_limit"

output_buffering = on

allow_url_include=1

extension = "mcrypt.so"

extension = "curl.so"

allow_url_fopen = On

如果您查看 official documentation,您可以看到 mcrypt 已预安装并在系统上启用。因此,您不必在 php.ini 中包含 extension = "mcrypt.so",只需将其删除即可。

请同时查看 Stack Overflow 线程 Can't Enable PHP Extensions on php.ini on App Engine for Laravel