且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

表单 GET 有效,表单 POST 无效

更新时间:2022-11-28 11:56:24

这个问题与我的想法并不接近.

The problem wasn't even close to my line of thought.

一个在处理后设置销毁 $_POST 数组的类行为不当,但无论如何都在销毁我的 $_POST 数组.仅在 PHP 5.3 机器上发生(警告导致类行为异常),服务器运行 5.2.

A class that sets destroys the $_POST array after processing was misbehaving, but was destroying my $_POST array anyway. Only happens on machines with PHP 5.3 (a warning was causing the class to misbehave), server was running 5.2.

谢谢 Briedis 的帮助.对不起,我带你去追鹅了!

Thank you, Briedis for trying to help. Sorry I led you on a goose chase!

当然,解决方案是编写一种更好的方法来处理该类中的警告,并且不允许 $_POST 数组被破坏.

The solution, of course, was to write a better way of handling warnings in that class and not allowing the $_POST array to get destroyed.