
set_magic_quotes_runtime
(PHP 4, PHP 5)
set_magic_quotes_runtime — 设置当前 magic_quotes_runtime 配置选项的激活状态
说明
bool set_magic_quotes_runtime
( bool $new_setting
)
设置当前 magic_quotes_runtime 配置选项的激活状态。
Warning
自 PHP 5.3.0
起,已经废弃此函数。强烈建议不要应用此函数 。
错误/异常
自 PHP 5.3 起,该函数已经被弃用,执行它的时候会抛出 E_DEPRECATED 异常。
自 PHP 5.4 起,尝试开启 magic quotes 时该函数会产生一个 E_CORE_ERROR 错误。
参数
new_setting
关闭是 FALSE,开启是 TRUE。
返回值
成功时返回 TRUE, 或者在失败时返回 FALSE。
范例
Example #1 set_magic_quotes_runtime() 例子
//
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...