0
我刚安装了xampp,运行一些旧的程序(创建2年或更多年前),我得到3我无法弄清楚的错误。php版本升级导致旧程序错误
- 严格的标准:只有变量应参考在C传递:\ XAMPP \ htdocs中\ 2010 \在线网\核心\路径\ 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我无法理解,它不是通过引用传递,为什么有一个错误?
哪条线是在这种情况下,线117? – DWright
$ this-> classname = end(explode('_',$ address))。($ e = $ ext!=''?'('。$ ext。')':''); – hkguile
最终功能是什么样的? – DWright