简体   繁体   English

从5.4起删除了magic_quotes_gpc

[英]magic_quotes_gpc removed since 5.4

I'm upgrading some code to php 7+. 我正在将一些代码升级到php 7+。 This directive is removed in 5.4. 该指令在5.4中已删除。 So since 5.4, this if will ALWAYS evaluate false right? 因此从5.4开始,这是否总是会评估错误的权利?

if (ini_get("magic_quotes_gpc"))    
{       
   some_code;
}

Is this for sure for php 5.5+ right? 这对于PHP 5.5+是肯定的吗?

Yes, Magic Quotes has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. 是的,Magic Quotes从PHP 5.3.0开始已被弃用,从PHP 5.4.0开始已被删除。

For more information see: PHP.net 有关更多信息,请参见: PHP.net

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM