2 Online. Join themUsers

# 197Closed Ticket: Some queries are not logged in class.mysql

Some queries are missing from the internal logger in class.mysql.php. The total is often higher than the number of queries printed out using ->debug('queries').

Sussed! Line 263 of class.mysql.php builds a unique hash for the query by hashing the current time. If two of the same query are fired one after the other, within a fraction of a second, this hash will be identical so only one will be logged.

Fixed by using microtime() instead:

$query_hash = md5($query.microtime());

Pulled. Thanks

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements
  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 4.1 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts