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:
parent
c97325b090
commit
3aaeff0dc2
|
@ -103,8 +103,10 @@ function php_shrink($input) {
|
||||||
$number = 0;
|
$number = 0;
|
||||||
foreach ($short_functions as $key => $val) {
|
foreach ($short_functions as $key => $val) {
|
||||||
if (isset($defined_functions[$key])) {
|
if (isset($defined_functions[$key])) {
|
||||||
|
do {
|
||||||
$short_functions[$key] = short_identifier($number, implode("", range('a', 'z')) . '_');
|
$short_functions[$key] = short_identifier($number, implode("", range('a', 'z')) . '_');
|
||||||
$number++;
|
$number++;
|
||||||
|
} while (isset($short_functions[$short_functions[$key]]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue