使用yiic工具时发现的问题

我在php.ini中加载zenddebugger.dll文件后,调用yiic shell一直提示failed loading zenddebugger.dll,之后也不能正常进入工具环境。在调用yiic工具时不能加载zenddebugger扩展吗?

具体信息如下:

D:\work\zend-workspace\yiiframework\yiidemo>yiic shell

Failed loading D:/dev/ZendDebugger-5.2.15-cygwin_nt-i386/ZendDebugger-5.2.15RC1-

cygwin_nt-i386/5_2_x_comp/ZendDebugger.dll

<!DOCTYPE html PUBLIC

        "-//W3C//DTD XHTML 1.0 Transitional//EN"

        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<title>

CException</title>

<style type="text/css">

/<![CDATA[/

body {font-family:"Verdana";font-weight:normal;color:black;background-color:whit

e;}

h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }

h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }

h3 {font-family:"Verdana";font-weight:bold;font-size:11pt}

p {font-family:"Verdana";font-size:9pt;}

pre {font-family:"Lucida Console";font-size:10pt;}

.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}

.message {color: maroon;}

.source {font-family:"Lucida Console";font-weight:normal;background-color:#ffffe

e;}

.error {background-color: #ffeeee;}

/]]>/

</style>

</head>

<body>

<h1>CException</h1>

<h3>Description</h3>

<p class="message">

SiteController cannot find the requested view &quot;index&quot;.</p>

<h3>Source File</h3>

<p>

D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\CController.php(661)<

/p>

<div class="source">

<pre>

00649:    {

00650:        if(($viewFile=$this-&gt;getViewFile($view))!==false)

00651:        {

00652:            $output=$this-&gt;renderFile($viewFile,$data,true);

00653:            if($processOutput)

00654:                $output=$this-&gt;processOutput($output);

00655:            if($return)

00656:                return $output;

00657:            else

00658:                echo $output;

00659:        }

00660:        else

<div class="error">00661:            throw new CException(Yii::t(&#039;yii&#039

;,&#039;{controller} cannot find the requested view &quot;{view}&quot;.&#039;,

</div>00662:                array(&#039;{controller}&#039;=&gt;get_class($this)

, &#039;{view}&#039;=&gt;$view)));

00663:    }

00664:

00665:    /**

00666:      * Renders dynamic content returned by the specified callback.

00667:      * This method is used together with {@link COutputCache}. Dynamic co

ntents

00668:      * will always show as their latest state even if the content surroun

ding them is being cached.

00669:      * This is especially useful when caching pages that are mostly stati

c but contain some small

00670:      * dynamic regions, such as username or current time.

00671:      * We can use this method to render these dynamic regions to ensure t

hey are always up-to-date.

00672:      *

00673:      * Except the first parameters, parameters of this method will be pas

sed to the specified callback.

</pre>

</div><!-- end of source -->

<h3>Stack Trace</h3>

<div class="callstack">

<pre>

#0 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\CController.php(59

1): CController-&gt;renderPartial(&#039;index&#039;, NULL, true)

#1 D:\work\zend-workspace\yiiframework\yiidemo\protected\controllers\SiteControl

ler.php(40): CController-&gt;render(&#039;index&#039;)

#2 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\actions\CInlineAct

ion.php(32): SiteController-&gt;actionIndex()

#3 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\CController.php(26

5): CInlineAction-&gt;run()

#4 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\CController.php(24

3): CController-&gt;runAction(Object(CInlineAction))

#5 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\CController.php(22

5): CController-&gt;runActionWithFilters(Object(CInlineAction), Array)

#6 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\CWebApplication.ph

p(335): CController-&gt;run(&#039;&#039;)

#7 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\CWebApplication.ph

p(123): CWebApplication-&gt;runController(&#039;&#039;)

#8 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\base\CApplication.php(

170): CWebApplication-&gt;processRequest()

#9 D:\work\zend-workspace\yiiframework\yiidemo\index.php(11): CApplication-&gt;r

un()

#10 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\cli\commands\ShellCom

mand.php(72): require(&#039;D:\work\zend-wo…&#039;)

#11 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\console\CConsoleComma

ndRunner.php(62): ShellCommand-&gt;run(Array)

#12 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\console\CConsoleAppli

cation.php(88): CConsoleCommandRunner-&gt;run(Array)

#13 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\base\CApplication.php

(170): CConsoleApplication-&gt;processRequest()

#14 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\yiic.php(30): CApplic

ation-&gt;run()

#15 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\yiic(15): require_onc

e(&#039;D:\work\zend-wo…&#039;)

#16 {main}</pre>

</div><!-- end of callstack -->

<div class="version">

2009-03-17 02:53:11 <a href="http://www.yiiframework.com/">Yii Framework</a>/1.0

.3</div>

</body>

</html>

可能是命令行PHP无法与你的zenddebugger兼容。不过这个关系不大。你这里的错误是SiteController试图显示一个不存在的index视图。

我只要把zenddebugger扩展关掉就正常了。