Issues

ZF-6395: Zend_Db_Profiler_Firebug throws exception when using filter

Issue Type: Bug Created: 2009-04-23T09:32:17.000+0000 Last Updated: 2009-11-20T12:17:13.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Christoph Dorn (cadorn) Assignee: Mickael Perraud (mikaelkael) Tags: - Zend_Db_Profiler

Related issues: - ZF-5950

Attachments:

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");

Comments

Posted by Mickael Perraud (mikaelkael) on 2009-11-20T12:16:25.000+0000

Fixed with r19138

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts