Welcome Guest, Not a member yet? Register   Sign In
system/core/Loader.php, possibly missed parameter in recursive method call?
#1

[eluser]Unknown[/eluser]
Hi,
i was not sure where to post this, but while i was wandering around in the CI 2.1.0 code, i stumbled on the library method of Loader core system class.

the library method of system/core/Loader.php is defined as :
Code:
public function library($library = '', $params = NULL, $object_name = NULL)

later on, at line 200 i found this recursive method call :

Code:
foreach ($library as $class)
{
$this->library($class, $params);
}

so, it seems that the optional third parameter $object_name is not included in subsequent recursive method calls.

as i am not familiar with the code in such detail to decide if this is intentional or not, i want to point your attention at what i have found out.

regards,
Svetlin Stefanov
#2

[eluser]InsiteFX[/eluser]
If you post bug reports here they may never get read.

If you think you have found a bug please submit an issue here.

CodeIgniter on GitHub - Issues
#3

[eluser]Unknown[/eluser]
I am not sure if it's a bug, that's why i post it here Smile
well, i'll use the bug tracker as well.




Theme © iAndrew 2016 - Forum software by © MyBB