- 论坛徽章:
- 0
|
系统freebsd6.3 AMD64
apache2.0+mysql4.1.22+php5.2.9+zend 3.3.0a
已知php5.2.0的BUG,http://bugs.php.net/bug.php?id=39763
测试代码:
<?php
$arr = array();
parse_str("this=%22probably+a+bug%22", $arr);
echo $arr['this'];
?>
正确显示应该是:
\"probably a bug\"
错误显示是:
\\\"probably a bug\\\"
我当时PHP5.2.0正好受此影响,随后升级到5.2.9
cd /usr/ports/lang/php5
make deinstall clean
make install clean
中间没有报错,“顺利”升级到5.2.9
测试代码
<?php
$arr = array();
parse_str("this=%22probably+a+bug%22", $arr);
echo $arr['this'];
?>
依然是
\\\"probably a bug\\\"
GOOGLE相关资料未解决,不知道为什么?
[ 本帖最后由 dzter 于 2009-5-19 01:20 编辑 ] |
|