简体   繁体   English

安装xdebug后PHP标头重定向不起作用

[英]PHP header redirection not working after installing xdebug

<?php
$url = 'http://google.com/';
header('Location: ' . $url);

The xdebug setting in php.ini is: php.ini中的xdebug设置是:

zend_extension=path_to_xdebug.dll
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp

The above header() redirection will work as long as I remove the xdebug setting. 只要删除xdebug设置,上述header()重定向就可以工作。

Anyone met this problem? 有人遇到这个问题吗?

This was a bug in xdebug, you may want to check your xdebug version and update it to the latest. 这是xdebug中的错误,您可能需要检查xdebug版本并将其更新为最新版本。 If I remember correctly, there were a few postings of the same issue at http://bugs.xdebug.org They have been resolved. 如果我没记错的话,在http://bugs.xdebug.org上有一些相同问题的帖子,它们已经解决。

--Edit-- Looks like someone else actually searched and found it at http://bugs.xdebug.org/view.php?id=532 as I was typing my original response. -编辑-好像其他人实际上在我输入原始回复时在http://bugs.xdebug.org/view.php?id=532上搜索并找到了它。

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

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