magic_quotes_runtime :
1 开启 0 关闭 可通过 set_magic_quotes_runtime() 动态 开启该选项
作用:
magic_quotes_runtime = 1
对执行sql查询的结果 执行addslashes()操作
对通过fread() file_get_contents()返回的文本,执行addslashes()操作
magic_quotes_gpc
不可通过php文件动态改变 其值 只可通过get_magic_quotes_gpc() 来获取php.ini magic_quotes_gpc 的值
作用
magic_quotes_sybase = 1
对php 服务器端接收的GET POST COOKIE 的值 执行addslashes()操作
magic_quotes_sybase
作用
影响addslashes() 函数
magic_quotes_sybase = 1
addslashes() 将对 ' 进行 ''转义操作
$str = ';
echo addslashes($str )
输出 ''
magic_quotes_sybase = 0
addslashes 将对 ' " \ 进行 \ 转义操作
$str = '"\;
echo addslashes($str);
输出 \'\"\\