Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 07 Mar 2022, 11:02
postcd postcd is offline
 
Join Date: Feb 2012
Post [STDERR] PHP Strict Standards: Only variables should be passed by reference

Hello, in vB 4.2.5 on PHP 5.6 i am seeing 3 errors for which i am quoting relevant code and highlighting in bold text the line that is linked in error message.
The first two seems to appear at same time when making reply.

[STDERR] PHP Strict Standards: Only variables should be passed by reference in newreply.php
if ($vbulletin->GPC_exists['emailupdate'])
{
$newpost['emailupdate'] = $vbulletin->GPC['emailupdate'];
}
else
{
$newpost['emailupdate'] = array_pop($array = array_keys(fetch_emailchecked($threadinfo, $vbulletin->userinfo)));
}

[STDERR] PHP Strict Standards: Only variables should be assigned by reference in includes/class_dm_threadpost.php(764) : eval()'d code
<?php
if (!class_exists('vB_DataManager', false))
[STDERR] PHP Strict Standards: Only variables should be assigned by reference in register.php
// check for multireg
if ($vbulletin->userinfo['userid'] AND !$vbulletin->options['allowmultiregs'])
{
eval(standard_error(fetch_error('alreadyregistered', $vbulletin->userinfo['username'], $vbulletin->session->vars['sessionurl'])));
}

// init user datamanager class
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);

// coppa option
Can You please suggest modification so the error is prevented?
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:22.

Layout Options | Width: Wide Color: