Jump to content
Stef's Coding Community
Sign in to follow this  
jim

Strict standards: Only variables should be passed by reference

Recommended Posts

Strict standards: Only variables should be passed by reference in C:\wamp64\www\oop_php_login_projectfiles\models\m_auth.php on line 30
what does the above mean
# Time Memory Function Location
1 0.0010 251576 {main}( ) ...\login.php:0
2 0.0180 288400 Auth->validateLogin( ) ...\login.php:21

login.php

m_auth.php

Share this post


Link to post
Share on other sites

Hi,

This has to do with the version of PHP. 

You should paste the PHP code in question, like the 5-10 lines around the error, not the whole page.

That said, and not having looked at the code, it is probably because the code is passing in a function result, as the argument, into another function. So you fix this by creating a variable out of the function call, and pass the variable into the function. 

Stef

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...