' . "\n"
@@ -1153,7 +1153,7 @@ if (empty($adduser) && empty($checkprivs)) {
$pred_db_array[] = $row[0];
}
}
- mysql_free_result($res);
+ PMA_DBI_free_result($res);
unset($res);
unset($row);
if (!empty($pred_db_array)) {
@@ -1175,7 +1175,7 @@ if (empty($adduser) && empty($checkprivs)) {
$pred_tbl_array[] = $row[0];
}
}
- mysql_free_result($res);
+ PMA_DBI_free_result($res);
unset($res);
unset($row);
if (!empty($pred_tbl_array)) {
diff --git a/server_processlist.php b/server_processlist.php
index 702eb6606..50baf258e 100644
--- a/server_processlist.php
+++ b/server_processlist.php
@@ -45,7 +45,7 @@ $res = @PMA_mysql_query($sql_query, $userlink) or PMA_mysqlDie(PMA_mysql_error($
while ($row = PMA_mysql_fetch_array($res, MYSQL_ASSOC)) {
$serverProcesses[] = $row;
}
-@mysql_free_result($res);
+@PMA_DBI_free_result($res);
unset($res);
unset($row);
diff --git a/server_status.php b/server_status.php
index 9baddf03d..79d108087 100644
--- a/server_status.php
+++ b/server_status.php
@@ -28,7 +28,7 @@ if (!empty($innodbstatus)) {
echo '' . "\n"
. htmlspecialchars($row[0]) . "\n"
. '
' . "\n";
- mysql_free_result($res);
+ PMA_DBI_free_result($res);
require_once('./footer.inc.php');
}
@@ -56,7 +56,7 @@ $res = @PMA_mysql_query('SHOW STATUS;', $userlink) or PMA_mysqlDie(PMA_mysql_err
while ($row = PMA_mysql_fetch_row($res)) {
$serverStatus[$row[0]] = $row[1];
}
-@mysql_free_result($res);
+@PMA_DBI_free_result($res);
unset($res);
unset($row);
@@ -68,7 +68,7 @@ unset($row);
$res = @PMA_mysql_query('SELECT UNIX_TIMESTAMP() - ' . $serverStatus['Uptime'] . ';');
$row = PMA_mysql_fetch_row($res);
echo sprintf($strServerStatusUptime, PMA_timespanFormat($serverStatus['Uptime']), PMA_localisedDate($row[0])) . "\n";
-mysql_free_result($res);
+PMA_DBI_free_result($res);
unset($res);
unset($row);
//Get query statistics
diff --git a/server_variables.php b/server_variables.php
index cb836e8e3..cf184eb80 100644
--- a/server_variables.php
+++ b/server_variables.php
@@ -40,18 +40,18 @@ if (PMA_MYSQL_INT_VERSION >= 40003) {
while ($row = PMA_mysql_fetch_row($res)) {
$serverVars[$row[0]] = $row[1];
}
- @mysql_free_result($res);
+ @PMA_DBI_free_result($res);
$res = @PMA_mysql_query('SHOW GLOBAL VARIABLES;', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW GLOBAL VARIABLES;');
while ($row = PMA_mysql_fetch_row($res)) {
$serverVarsGlobal[$row[0]] = $row[1];
}
- @mysql_free_result($res);
+ @PMA_DBI_free_result($res);
} else {
$res = @PMA_mysql_query('SHOW VARIABLES;', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW VARIABLES;');
while ($row = PMA_mysql_fetch_row($res)) {
$serverVars[$row[0]] = $row[1];
}
- @mysql_free_result($res);
+ @PMA_DBI_free_result($res);
}
unset($res);
unset($row);
diff --git a/sql.php b/sql.php
index e58d8763e..70ca128b6 100644
--- a/sql.php
+++ b/sql.php
@@ -296,7 +296,7 @@ else {
$cnt_all_result = @PMA_mysql_query('SELECT COUNT(*) as count' . $parts[2]);
if ($cnt_all_result) {
$num_rows = PMA_mysql_result($cnt_all_result, 0, 'count');
- mysql_free_result($cnt_all_result);
+ PMA_DBI_free_result($cnt_all_result);
} else {
$num_rows = 0;
}
@@ -349,7 +349,7 @@ else {
$db = $row['db'];
$reload = 1;
}
- @mysql_free_result($res);
+ @PMA_DBI_free_result($res);
unset($res);
unset($row);
@@ -463,7 +463,7 @@ else {
} else {
$unlim_num_rows = PMA_mysql_result($cnt_all_result, 0, 'count');
}
- mysql_free_result($cnt_all_result);
+ PMA_DBI_free_result($cnt_all_result);
} else {
if (mysql_error()) {
@@ -652,7 +652,7 @@ else {
}
PMA_displayTable($result, $disp_mode, $analyzed_sql);
- mysql_free_result($result);
+ PMA_DBI_free_result($result);
if ($disp_mode[6] == '1' || $disp_mode[9] == '1') {
echo "\n";
diff --git a/tbl_alter.php b/tbl_alter.php
index 9f193f18a..f9759f60e 100644
--- a/tbl_alter.php
+++ b/tbl_alter.php
@@ -178,7 +178,7 @@ if ($abort == FALSE) {
$local_query = 'SHOW FIELDS FROM ' . PMA_backquote($table) . ' FROM ' . PMA_backquote($db) . " LIKE '$field'";
$result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url);
$fields_meta[] = PMA_mysql_fetch_array($result);
- mysql_free_result($result);
+ PMA_DBI_free_result($result);
}
$num_fields = count($fields_meta);
diff --git a/tbl_indexes.php b/tbl_indexes.php
index 1358b5519..c544f9acd 100644
--- a/tbl_indexes.php
+++ b/tbl_indexes.php
@@ -44,7 +44,7 @@ if (!defined('PMA_IDX_INCLUDED')) {
header('Location: ' . $cfg['PmaAbsoluteUri'] . $cfg['DefaultTabDatabase'] . '?' . PMA_generate_common_url($db, '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1');
exit;
} else if (isset($is_table)) {
- mysql_free_result($is_table);
+ PMA_DBI_free_result($is_table);
}
// Displays headers (if needed)
@@ -104,7 +104,7 @@ for ($i = 0; $i < $idx_cnt; $i++) {
if (defined('PMA_IDX_INCLUDED')) {
unset($ret_keys);
} else if ($result) {
- mysql_free_result($result);
+ PMA_DBI_free_result($result);
}
// Get fields and stores their name/type
@@ -131,7 +131,7 @@ while ($row = PMA_mysql_fetch_array($fields_rs)) {
} // end while
if ($fields_rs) {
- mysql_free_result($fields_rs);
+ PMA_DBI_free_result($fields_rs);
}
diff --git a/tbl_printview.php b/tbl_printview.php
index 9503d0a37..e9684c3a1 100644
--- a/tbl_printview.php
+++ b/tbl_printview.php
@@ -85,7 +85,7 @@ foreach($the_tables AS $key => $table) {
$num_rows = (isset($showtable['Rows']) ? $showtable['Rows'] : 0);
$show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : '');
if ($result) {
- mysql_free_result($result);
+ PMA_DBI_free_result($result);
}
@@ -128,7 +128,7 @@ foreach($the_tables AS $key => $table) {
} // end while
if ($result) {
- mysql_free_result($result);
+ PMA_DBI_free_result($result);
}
@@ -286,7 +286,7 @@ foreach($the_tables AS $key => $table) {
diff --git a/tbl_properties.inc.php b/tbl_properties.inc.php
index 94b66d375..7458526b4 100644
--- a/tbl_properties.inc.php
+++ b/tbl_properties.inc.php
@@ -588,7 +588,7 @@ if ($action == 'tbl_create.php') {
} // end if
} // end while
} // end if
- mysql_free_result($result);
+ PMA_DBI_free_result($result);
echo "\n";
?>
diff --git a/tbl_properties_operations.php b/tbl_properties_operations.php
index a61cd7f00..5b3d831a3 100644
--- a/tbl_properties_operations.php
+++ b/tbl_properties_operations.php
@@ -84,7 +84,7 @@ $result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '
for ($i = 0; $row = PMA_mysql_fetch_array($result); $i++) {
$columns[$i] = $row['Field'];
}
-mysql_free_result($result);
+PMA_DBI_free_result($result);
/**
@@ -400,7 +400,7 @@ if ($cfgRelation['relwork'] && $tbl_type != "INNODB") {
} // end while
} // end if $result
- mysql_free_result($result);
+ PMA_DBI_free_result($result);
echo "\n";
?>