我在php.ini中加载zenddebugger.dll文件后,调用yiic shell一直提示failed loading zenddebugger.dll,之后也不能正常进入工具环境。在调用yiic工具时不能加载zenddebugger扩展吗?
我在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 "index".</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->getViewFile($view))!==false)
00651: {
00652: $output=$this->renderFile($viewFile,$data,true);
00653: if($processOutput)
00654: $output=$this->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('yii'
;,'{controller} cannot find the requested view "{view}".',
</div>00662: array('{controller}'=>get_class($this)
, '{view}'=>$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->renderPartial('index', NULL, true)
#1 D:\work\zend-workspace\yiiframework\yiidemo\protected\controllers\SiteControl
ler.php(40): CController->render('index')
#2 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\actions\CInlineAct
ion.php(32): SiteController->actionIndex()
#3 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\CController.php(26
5): CInlineAction->run()
#4 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\CController.php(24
3): CController->runAction(Object(CInlineAction))
#5 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\CController.php(22
5): CController->runActionWithFilters(Object(CInlineAction), Array)
#6 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\CWebApplication.ph
p(335): CController->run('')
#7 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\web\CWebApplication.ph
p(123): CWebApplication->runController('')
#8 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\base\CApplication.php(
170): CWebApplication->processRequest()
#9 D:\work\zend-workspace\yiiframework\yiidemo\index.php(11): CApplication->r
un()
#10 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\cli\commands\ShellCom
mand.php(72): require('D:\work\zend-wo…')
#11 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\console\CConsoleComma
ndRunner.php(62): ShellCommand->run(Array)
#12 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\console\CConsoleAppli
cation.php(88): CConsoleCommandRunner->run(Array)
#13 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\base\CApplication.php
(170): CConsoleApplication->processRequest()
#14 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\yiic.php(30): CApplic
ation->run()
#15 D:\work\zend-workspace\yiiframework\yii1.0.3\framework\yiic(15): require_onc
e('D:\work\zend-wo…')
#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扩展关掉就正常了。