mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 08:06:59 +02:00
Prevent name conflicts in function minification
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@585 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -103,8 +103,10 @@ function php_shrink($input) {
|
||||
$number = 0;
|
||||
foreach ($short_functions as $key => $val) {
|
||||
if (isset($defined_functions[$key])) {
|
||||
$short_functions[$key] = short_identifier($number, implode("", range('a', 'z')) . '_');
|
||||
$number++;
|
||||
do {
|
||||
$short_functions[$key] = short_identifier($number, implode("", range('a', 'z')) . '_');
|
||||
$number++;
|
||||
} while (isset($short_functions[$short_functions[$key]]));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user