Strict Standards: Only variables should be passed by reference in m_auth

前端 未结 4 1181
栀梦
栀梦 2020-12-22 14:16

I am working on a login system for a project using MVC programming and ran into this error. Here is the code, the problem line is #31

This login system is a tutoria

4条回答
  •  半阙折子戏
    2020-12-22 15:13

    This was likely fixed in PHP 5.4 as part of Function Array Dereferencing (FAD) (revision 300266).

    Alternatively as workaround try adding extra brackets, e.g.

    $stmt->bind_param("ss", $user, (md5($pass . $this->salt)));
    

    which would dereference the method/function return, see: (<5.6) Occasionally significant parentheses.

提交回复
热议问题