从 PHP 5.0.3 开始,默认情况下会禁用 HTTP_GET_VARS 等长预定义数组。
Stackoverflow 成员 Notinlist 最近建议,为了向后兼容,您可以在 php.ini 中启用它们......这很难做到吗?是否成功?
最佳答案
为什么不直接 Google 允许 HTTP_GET_VARS
?第一个结果非常有用,甚至 Google 的摘录都会告诉您该怎么做
http://php.net/manual/en/language.variables.predefined.php
From PHP 5.0.3 long predefined arrays such HTTP_GET_VARS got disabled by default. For backward compatibility you can enable them in php.ini:
register_long_arrays = On
I sugget a big WARNING up there like that one with the resister_globals.
Anyway.. I cannot understand why they do such tings all the time.
关于php - 启用 php.ini 以实现向后兼容性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8575510/