profiler warning via get_class |
[eluser]philipo[/eluser]
The error (twice): Quote:A PHP Error was encounteredThe code in question: Code: // Let's determine which databases are currently connected to Code: // Let's determine which databases are currently connected to Quote: ["_ci_scaffolding"]=> PHP Version: PHP 5.3.0RC2-dev (built: Mar 29 2009 02:15:07) CI Version: 1.7.1 Conclusion: PHP BC bug? Me?
[eluser]philipo[/eluser]
A simple call to the profiler, here's the simplest code to reproduce: Code: class Main extends Controller {
[eluser]philipo[/eluser]
Do you see the _ci_scaffolding and _ci_scaff_table entries as $CI_object? These seem to be the key as they are boolean and resulting in the errors. I long since deleted the debug code since generating them but could create a more detailed test case if needed.
[eluser]wiredesignz[/eluser]
@Derek, This code is the culprit Code: is_subclass_of(get_class($CI_object), 'CI_DB') http://php.net/manual/en/function.is-subclass-of.php The highlighter helper function also fails to render correctly when displaying the db queries. |
Welcome Guest, Not a member yet? Register Sign In |