From: Tim Starling Date: Sat, 20 Mar 2004 14:07:56 +0000 (+0000) Subject: extra debugging info X-Git-Tag: 1.3.0beta1~763 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=8eebcbc3a01282c43de44ca5b3d47290d09a6ac7;p=lhc%2Fweb%2Fwiklou.git extra debugging info --- diff --git a/includes/Database.php b/includes/Database.php index 99422a3fd4..d31a7b1840 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -185,7 +185,11 @@ class Database { return $ret; } - function freeResult( $res ) { mysql_free_result( $res ); } + function freeResult( $res ) { + if ( !@mysql_free_result( $res ) ) { + wfDebugDieBacktrace( "Unable to free MySQL result\n" ); + } + } function fetchObject( $res ) { @$row = mysql_fetch_object( $res ); # FIXME: HACK HACK HACK HACK debug