我刚刚安装了 xampp,以运行一些旧程序(创建于 2 年或更多年前),但我遇到了 3 个我无法弄清楚的错误。
- 严格的标准:只有变量应该在 C:\xampp\htdocs\2010\web\core\route\route.php 的第 117 行通过引用传递
public function loadClass($address,$ext='') {
$this->extname = preg_replace('/_/','/',$address,3);
line:117> $this->classname = end(explode('_',$address)).($e= $ext!='' ? '('.$ext.')' : '');
include_once(ROOT_ROUTE.'/'.$this->extname.'.php');
$this->newclass = new $this->classname;
return $this->newclass;
}
第117行我看不懂,它没有使用通过引用传递,为什么会出现错误?