我知道这个问题已经存在于SO中,但是
我为我的服务器使用共享主机,他们的服务异常糟糕。所以我想知道,无论如何都要从应用程序方面解决这个问题。
或删除'' register_long_arrays''从php.ini引用是摆脱这个错误的唯一方法吗?
答案 0 :(得分:1)
This is probably due to legacy code in their php.ini
file.
If you are using .htaccess files, you can try placing the flag php_flag register_long_arrays Off
in the root .htaccess
file.
The register_long_arrays
directive has been deprecated since PHP 5.3 and removed since PHP 5.4, and Yii2 is supported for PHP >= 5.4
So if you're running a PHP 5.3 server, you're in trouble!