xdebug开启时输出双重pre标签

浏览:1900 发布日期:2017/02/04
5.0.0 - 普通 - 未处理
使用 tp5.0.5 版本
文件位置:\thinkphp\library\think\Debug.php

因为开启了xdebug,所以在行165var_dump($var);时xdebug添加了pre标签:
<pre class="xdebug-var-dump" dir="ltr">...</pre>

在174行添加pre标签会造成pre标签嵌套!

修改为:            if (!extension_loaded('xdebug')) {
                $output = htmlspecialchars($output, $flags);
                $output = '<pre>' . $label . $output . '</pre>';
            }
注意:此修改没有测试,请自定承担风险,O(∩_∩)O哈哈~
评论(
后面还有条评论,点击查看>>