From 6be170e227403db3882a29d541a511ad4751fa17 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 26 Jul 2015 08:41:26 -0400 Subject: [PATCH] Fix PHP 7 possible binding ambiguity Signed-off-by: Marc Delisle --- ChangeLog | 1 + libraries/tbl_info.inc.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 25978c36b4..e629132d77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ phpMyAdmin - ChangeLog - issue #1808 "Improve table structure" generates invalid SQL - bug Once checked "Show only active" checkbox is always checked - issue #1813 Delete rows using "Check All" is broken +- Fix PHP 7 possible binding ambiguity 4.4.12.0 (2015-07-20) - bug Saved chart image does not have a proper name or an extension diff --git a/libraries/tbl_info.inc.php b/libraries/tbl_info.inc.php index 23551cc1b8..a03addc478 100644 --- a/libraries/tbl_info.inc.php +++ b/libraries/tbl_info.inc.php @@ -96,7 +96,8 @@ if ($showtable) { foreach ($create_options as $each_create_option) { $each_create_option = explode('=', $each_create_option); if (isset($each_create_option[1])) { - $$each_create_option[0] = $each_create_option[1]; + // ensure there is no ambiguity for PHP 5 and 7 + ${$each_create_option[0]} = $each_create_option[1]; } } // we need explicit DEFAULT value here (different from '0')