Doubear
V2EX  ›  PHP

PHP 中的$GLOBALS 有什么安全隐患么?

  •  
  •   Doubear · May 19, 2015 · 1828 views
    This topic created in 4037 days ago, the information mentioned may be changed or developed.

    在一个群里说到$GLOBALS 立马就有所谓大牛跑出来说“最好不要用 万一哪天消失了怎么办”
    我就在想,PHP官方文档里写的不是 $GLOBALS 这个超全局变量是一直可用的

    我觉得,毕竟 $_SERVER $_GET $_POST 之类的超全局变量都是扔里面的
    如果突然消失了,岂不是要发疯?多少程序没法用啊?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3050 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 13:22 · PVG 21:22 · LAX 06:22 · JFK 09:22
    ♥ Do have faith in what you're doing.