EllisLab/CodeIgniter — pull request #2219 by timw4mail (2013-02-01 17:27:27+00:00)
Title: Removal of object references

Signed-off-by: Timothy Warren

PHP5 returns object references by default, as such, the references used on objects all over CodeIgniter are redundant.

Simple test case to prove the default reference:

class foo {
var $blah = 5;
}

$foo = new foo();
$bar = $foo;

$foo->blah = 6;
$bar->blah = 7;
echo $foo->blah."
";
echo $bar->blah."
";

This is, so far, just based on the core folder.