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