1
luciano
Only variable references should be returned ????
  • 2005/12/24 11:28

  • luciano

  • Quite a regular

  • Posts: 261

  • Since: 2003/11/3


Php debug on, and this is what I get! Any ideas?


Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 510
Notice 
[PHP]: Only variable references should be returned by reference in file include/functions.php line 510
Notice 
[PHP]: Only variables should be assigned by reference in file class/database/mysqldatabase.php line 236
Notice 
[PHP]: Only variable references should be returned by reference in file class/database/mysqldatabase.php line 347
Notice 
[PHP]: Only variable references should be returned by reference in file include/functions.php line 510
Notice 
[PHP]: Only variables should be assigned by reference in file class/database/mysqldatabase.php line 236
Notice 
[PHP]: Only variable references should be returned by reference in file class/database/mysqldatabase.php line 347
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/config.php line 188
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice 
[PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97


and it goes on and on...

2
jdseymour
Re: Only variable references should be returned ????

Yes, you are using a newer version of PHP than the program was written for, this error was added to get developers to clean up code, it causes no trouble with operation of the program, just deactivate PHP debug and it will go away.

Edit: the error was added by php.net developers. I think the action is taken to have code cleaned up in version 4 for eventual upgrade to version 5 of PHP. Kind of an intermediate thing I believe.

3
luciano
Re: Only variable references should be returned ????
  • 2005/12/24 12:41

  • luciano

  • Quite a regular

  • Posts: 261

  • Since: 2003/11/3


Hey, I was a bit puzzled. Thanks for the info!

4
saamah
Re: Only variable references should be returned ????
  • 2006/1/7 11:04

  • saamah

  • Just popping in

  • Posts: 12

  • Since: 2005/9/9 1


And if you can't turn of the debug on your host?

5
m0nty
Re: Only variable references should be returned ????
  • 2006/1/9 15:51

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


turn it off in XOOPS in general settings :S

6
amjad
Re: Only variable references should be returned ????
  • 2008/5/14 7:19

  • amjad

  • Just popping in

  • Posts: 1

  • Since: 2008/5/14


i am facing problem when i am going executing
the give example of HMVC in php model the error message is

:Only variable references should be returned by reference:
and here is code

application/Conroller/test.php
class Test extends Controller {

function Test()
{
parent::Controller();
}

function index()
{


$this->load->helper('modules');
modules::run('modtest',true,'test');


// Load Module Helper
//$this->load->library("modules");

// Loading modules in a Controller
//$this->modules->load('fighters');
}
}
?>
and here is application/Module/fighters.php

{
function fighters()
{
parent::Modules();
}

function test()
{
echo "test";
}

}
?>


plz help

Login

Who's Online

359 user(s) are online (219 user(s) are browsing Support Forums)


Members: 0


Guests: 359


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits