PHP使用header函数时,总会向页面多输出一个0,或者其他字符

问答中心分类: PHPPHP使用header函数时,总会向页面多输出一个0,或者其他字符
ahai asked 8年 ago
<?php
header('Location: http://www.qq.com');
?>

以上面代码为例,实际输出到用户服务器的数据,除了基本的数据外,还会多出一个0,

HTTP/1.1 302 Moved Temporarily
Server: nginx
Date: Wed, 10 Aug 2016 09:15:43 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Location: http://jeeph5.appsbank.cn/test2.php

0

测试地址:http://wxtest.h5power.cn/test.php
 
已在多个部署oneinstack的服务器上使用上述代码测试,均发现存在同样问题;

1 Answers
oneinstack answered 8年 ago
可能php bug,向:https://bugs.php.net/描述情况,把版本号描述清楚。。