Welcome Guest, Not a member yet? Register   Sign In
CI Library Recursion
#1

[eluser]bcdennis[/eluser]
I noticed in 1.6.1 on a fresh install with only the default session library (auto) loaded that they are recursively referencing CI base.
Code:
<?php
class Home extends Controller {

    function __construct()
    {
        parent::__construct();
    }
    
    function index()
    {
        echo "<pre>";
        print_r($this);
        echo "</pre>";
    }
}
?&gt;

Gives
Code:
**snip**
    [encrypt] => CI_Encrypt Object
        (
            [CI] => Home Object
*RECURSION*
            [encryption_key] =>
            [_hash_type] => sha1
            [_mcrypt_exists] =>
            [_mcrypt_cipher] =>
            [_mcrypt_mode] =>
        )

    [session] => CI_Session Object
        (
            [CI] => Home Object
*RECURSION*
            [now] => 1205449041
**snip**

I haven't check old versions, but I don't recall this being an issue. This is causing performance problems as my application grows from simple to complex.
#2

[eluser]bcdennis[/eluser]
Disregard. I had a massive brain-fart. Cyclical pointers weren't causing my problems.




Theme © iAndrew 2016 - Forum software by © MyBB