njumba 发表于 2009-10-22 23:09:23

用zendstudio debug的问题

刚刚装了CI 1.7.2, 直接浏览 http://localhost/index.php 没问题,能看到welcome的内容

但是用zend studio 5.5打开debug, 总是报URI错误

debug发现是debug环境中,有$_SERVER['QUERY_STRING'='start_debug=1&debug_port=10000&debug_fastfile=1&debug_host=127.0.0.1'
让程序误以为是真正的QUERY_STRING, 写到URI中,结果报错

我就修改URI.php中
// No PATH_INFO?... What about QUERY_STRING?
$path =(isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING');
增加
$path = str_replace($path,'','start_debug=1&debug_port=10000&debug_fastfile=1&debug_host=127.0.0.1');

暂时OK了

Hex 发表于 2009-10-23 00:02:39

不要用 IDE 呵呵
页: [1]
查看完整版本: 用zendstudio debug的问题