Codeigniter: Only variables should be assigned by reference

Created on 23 Jul 2012  路  4Comments  路  Source: bcit-ci/CodeIgniter

I get a PHP strict error on core/Loader.php line 150 in stable release:

$this->_base_classes =& is_loaded();

ErrorException [ Strict ]: Only variables should be assigned by reference.

I don't see this addressed in the development version, is anyone else having this problem?

Most helpful comment

What happens if you change the function signature to this:

function &is_loaded()

All 4 comments

What happens if you change the function signature to this:

function &is_loaded()

Get's rid of the error

Needs to be done in Common.php not the method in Loader.php

Wow!!! Thanks @narfbg +1:

Is this something they will fix???

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rmdhfz picture rmdhfz  路  3Comments

it-can picture it-can  路  5Comments

mckaygerhard picture mckaygerhard  路  4Comments

vahidvdn picture vahidvdn  路  4Comments

sasbass picture sasbass  路  7Comments