Zend Framework

Zend_Db_Profiler_Firebug throws exception when using filter

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: N/A N/A
  • Resolution: Fixed
  • Affects Version/s: 1.7.8
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Db_Profiler
  • Labels:
    None

Description

Using 1.7.8 today I ran across a bug in Zend_Db_Profiler_Firebug. If you
have filtered, for example, select queries from profiling an exception is
thrown on line 131 when the profiler cannot find the $queryId, which was
unset in Zend_Db_Profiler on line 332.

Example:

$db->setProfiler(new Zend_Db_Profiler_Firebug('DB Queries'));
$profiler = $db->getProfiler();

$channel = Zend_Wildfire_Channel_HttpHeaders::getInstance();
$channel->setRequest(new Zend_Controller_Request_Http());
$channel->setResponse(new Zend_Controller_Response_Http());

// Turn on profiling for local development
if ($xcart_http_host == 'localhost') { $profiler->setEnabled(true); $profiler->setFilterQueryType(Zend_Db_Profiler::INSERT | Zend_Db_Profiler::UPDATE); }

$db->query("SELECT count FROM table1");

Issue Links

Activity

Hide
Mickael Perraud added a comment -

Fixed with r19138

Show
Mickael Perraud added a comment - Fixed with r19138

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: