From 4b0a8d96c091b3e6a7731e35e56763792e69356e Mon Sep 17 00:00:00 2001 From: Anthony Parsons Date: Thu, 17 Nov 2005 23:38:59 +0000 Subject: [PATCH] Minor edits in con.php/COPYING Changed a sprintf to a vsprintf in class debugmysqli --- COPYING | 2 +- con.php | 44 +++++++++++++++++++++++--------------------- lib/class.debugmysqli.php | 2 +- 3 files changed, 25 insertions(+), 23 deletions(-) diff --git a/COPYING b/COPYING index bad3bda..57624c3 100644 --- a/COPYING +++ b/COPYING @@ -1,4 +1,4 @@ -Copyright © 2004, 2005 Anthony Parsons +Copyright © 2004-2005 Anthony Parsons This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use diff --git a/con.php b/con.php index 4b42b9a..d3fdce6 100644 --- a/con.php +++ b/con.php @@ -1,15 +1,20 @@ query('SHOW WARNINGS'); $out = ''; while ( $row = $result2->fetch_row() ) - $out .= sprintf("%s #%s: %s\n", $row[0], $row[1], $row[2]); + $out .= vsprintf("%s #%s: %s\n", $row); throw new RuntimeException("MySQLi query() warning(s)\n".$out."\nQuery given was: \n".$q, E_USER_WARNING); } $this->c++; -- 2.11.4.GIT