"Only variables should be assigned by reference": the return value of a
function is not a variable, and none of the three methods called declares
that it returns a reference. With objects the & has been useless since php 5,
and every other place that calls get_user() already assigns without it.
The Notice came out on every card played (briskin5's index_wr.php) and was
invisible until the daemon log was cleaned up.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014M1jiEq9cHdE5SE5j6vFuE
if ($chals == FALSE) {
log_only("INIT CHALLENGES DATA");
- $chals =& Challenges::create();
+ $chals = Challenges::create();
if (@shm_put_var($shm, $tok, $chals) == FALSE) {
log_only("PUT_VAR FALLITA ".strlen(serialize($chals)));
log_only(serialize($chals));
if ($hban == FALSE) {
log_only("INIT HARDBAN DATA");
- $hban =& Hardbans::create();
+ $hban = Hardbans::create();
if (@shm_put_var($shm, $tok, $hban) == FALSE) {
log_only("PUT_VAR FALLITA ".strlen(serialize($hban)));
log_only(serialize($hban));
log_wr(0, 'bin::index_wr.php: COMM: '.xcapemesg($mesg));
- if (($user = &$bin5->get_user($sess, $idx)) == FALSE) {
+ if (($user = $bin5->get_user($sess, $idx)) == FALSE) {
echo "Get User Error";
log_wr("Get User Error");
return FALSE;