Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prevent name conflicts in function minification

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@585 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
commit 3aaeff0dc2f8eb6fb49d66da273b91346eb064a2 1 parent c97325b
jakubvrana authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 _compile.php
View
6 _compile.php
@@ -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]]));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.