Forum Moderators: coopster
The bug mentioned in the above thread is also present in version 5.0.5 and affects a range of functions:
The following code will generate an error:
return end(explode(" ", $host)); The fix:
$tmp = explode(" ", $host);
return end($tmp); This will also error:
$category = array_shift(array_keys($categories));
The fix:
$tmp = array_keys($categories);
$category = array_shift($tmp);
And this:
list($parent, $num) = each(end($this->tags));
These are actual examples that needed to be patched on our system - I think you can see the pattern ;)