Fixed #31496 DEBUG_BACKTRACE_IGNORE_ARGS not supported in PHP 5.3.1-5.3.5

This fix is a bit of copy-paste fixing, as we don't have JObserverInterface committed yet. Once committed we could refactor all debug code away from JDatabaseDriverXYZ into an observer in the debug plugin.