有没有碰到过这个问题,新版的svnmanager到windows下好多问题....,特此请求大家帮忙.

svnmanager v1.0.9在编辑用户权限和组权限的时候都报错,

apache log:

PHP Fatal error:  Class 'PEAR_ErrorStack' not found in C:\\Program Files\\Apache Software 
Foundation\\Apache2.2\\htdocs\\svnmanager\\svnmanager\\RepositoryModule\\
UserPrivilegesEditPage.php on line 204, referer: http://svn.zzw.com/svnmanager/index.php?page=Repository:UserPrivilegesPage

ie:

 


Fatal error: Class 'PEAR_ErrorStack' not found in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\
svnmanager\svnmanager\
RepositoryModule\UserPrivilegesEditPage.php
 on line 204

 



row 204

svnmanager\svnmanager\RepositoryModule

//retrieve sub paths from repositoty
require_once("VersionControl/SVN.php");

require("config.php");
$svnstack = &PEAR_ErrorStack::singleton('VersionControl_SVN');
 


pear uninstall VersionControl_SVN-0.5.0卸掉0.5.0
pear install PEAR-1.9.4
pear install VersionControl_SVN-0.4.0重装0.4.0就没报这个错了

 

找到VersionControl_SVN的文件C:\php5.2.17\PEAR\VersionControl\SVN.php

在674行: 

 

 
  
  1. $cmd = str_replace($this->svn_path, escapeshellarg($this->svn_path), $cmd); 

 

修改为: 

 
  
  1. $cmd = str_replace($this->svn_path, escapeshellarg($this->svn_path), '"'.$cmd.'"'); 

就好了: 

 

 汉化包,见附件.