【问题标题】:PHP header redirection not working after installing xdebug安装 xdebug 后 PHP 标头重定向不起作用
【发布时间】:2010-05-19 13:32:15
【问题描述】:
<?php
$url = 'http://google.com/';
header('Location: ' . $url);

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

只要我删除 xdebug 设置,上述header() 重定向将起作用。

有人遇到过这个问题吗?

【问题讨论】:

    标签: php header xdebug


    【解决方案1】:
    【解决方案2】:

    这是 xdebug 中的一个错误,您可能需要检查您的 xdebug 版本并将其更新到最新版本。 如果我没记错的话,http://bugs.xdebug.org 有几个相同问题的帖子 他们已经解决了。

    --编辑-- 看起来其他人在我输入原始回复时实际上在 http://bugs.xdebug.org/view.php?id=532 搜索并找到了它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-09-30
      • 2016-01-03
      • 2022-01-17
      • 2011-09-09
      • 1970-01-01
      相关资源
      最近更新 更多