PHP增强的想法:register_globals_manual [英] Idea for PHP Enhancement: register_globals_manual
问题描述
由于register_globals = on的所有问题,我建议
以下想法:
我们将register_globals_manual = on定义为新的配置默认值。
这样做是启用3个新的显式变量声明机制
,其语法与现有的静态和全局机制相同。
>
他们将是httpget,httppost和session,例如:
httpget $ user_id;
httppost $ credit_card;
session $ really_important_stuff;
这些声明行中的每一行都能在一种特定方法中为一个特定变量实现
register_globals
(GET,POST或会话)。
欢迎提出创意建议,评论。
-
垃圾邮件:新闻组(at)cr ********* @ verisign-sux-klj.com
电子邮件:< 0110001100101110011000100111010101110010011 010110
1100101010000000110001101 1100100110000101111010011 011100
11000010111001000101110011000110110111101101101001 00000>
With all the problems with having register_globals = on, I propose the
following idea:
We define register_globals_manual = on as a new configuration default.
What this does is enable 3 new explicit variable declaration mechanisms
with the same syntax as the existing static and global mechanisms.
They would be httpget, httppost and session, so for example:
httpget $user_id;
httppost $credit_card;
session $really_important_stuff;
Each of these declaration lines would effectively enable
register_globals for one specific variable in one particular method
(GET, POST or session).
Creative suggestions, comments would be welcome.
--
Spam:newsgroup(at)cr*********@verisign-sux-klj.com
EMail:<0110001100101110011000100111010101110010011 010110
11001010100000001100011011100100110000101111010011 011100
11000010111001000101110011000110110111101101101001 00000>
推荐答案
user_id;
httppost
user_id;
httppost
credit_card;
session
credit_card;
session
really_important_stuff;
这些声明行中的每一行都能有效启用
register_globals用于一个特定方法中的一个特定变量
(GET,POST或会话)。
创意建议,评论会欢迎。
-
垃圾邮件:新闻组(at)cr ********* @ verisign-sux-klj.com
电子邮件:< 0110001100101110011000100111010101110010011 010110
11001010100000001100011011100100110000101111010011 011100
11000010111001000101110011000110110111101101101001 00000>
really_important_stuff;
Each of these declaration lines would effectively enable
register_globals for one specific variable in one particular method
(GET, POST or session).
Creative suggestions, comments would be welcome.
--
Spam:newsgroup(at)cr*********@verisign-sux-klj.com
EMail:<0110001100101110011000100111010101110010011 010110
11001010100000001100011011100100110000101111010011 011100
11000010111001000101110011000110110111101101101001 00000>
这篇关于PHP增强的想法:register_globals_manual的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!