Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2016-01-14 04:36:18 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2016-01-14 04:36:18 +0300
commitc60c33377d6d9400f0d4608fbcfa772e42477570 (patch)
tree9f096c3fe29b246291bd1ffef8973b18f51268f5 /export.php
parent682f5eb79aade4c17214dff127270d10225f646c (diff)
Fix TODO: Use finally as it's available in PHP >= 5.5
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'export.php')
-rw-r--r--export.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/export.php b/export.php
index 75fc590d59..082cbd74f0 100644
--- a/export.php
+++ b/export.php
@@ -454,10 +454,8 @@ if (!defined('TESTSUITE')) {
$do_relation, $do_comments, $do_mime, $do_dates, $aliases,
$separate_files
);
+ } finally {
PMA_unlockTables();
- } catch (Exception $e) { // TODO use finally when PHP version is 5.5
- PMA_unlockTables();
- throw $e;
}
} else {
PMA_exportDatabase(
@@ -487,10 +485,8 @@ if (!defined('TESTSUITE')) {
$do_mime, $do_dates, $allrows, $limit_to, $limit_from,
$sql_query, $aliases
);
+ } finally {
PMA_unlockTables();
- } catch (Exception $e) { // TODO use finally when PHP version is 5.5
- PMA_unlockTables();
- throw $e;
}
} else {
PMA_exportTable(