Strict Standards: Only variables should be passed by reference

2017-03-29 admin 9

Strict Standards: Only variables should be passed by reference in C:\upupw\htdocs\web\app\Lib\app_init.php on line 51 
Strict Standards: Only variables should be passed by reference in C:\upupw\htdocs\web\app\Lib\app_init.php on line 52

我就找了这个文件,找到了这两句代码如下:


$module = filter_ma_request(strtolower(!empty($_REQUEST[CTL])?$_REQUEST[CTL]:"index"));
$action = filter_ma_request(strtolower(!empty($_REQUEST[ACT])?$_REQUEST[ACT]:"index"));



可以肯定是因为目前环境是php5.3的原因,还说只要把这句话断成两句就可以了


$CTLstr = strtolower(!empty($_REQUEST[CTL])?$_REQUEST[CTL]:"index");
$ACTstr = strtolower(!empty($_REQUEST[ACT])?$_REQUEST[ACT]:"index");
$module = filter_ma_request($CTLstr);
$action = filter_ma_request($ACTstr);