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:
jakubvrana 2009-04-17 13:25:35 +00:00
parent c97325b090
commit 3aaeff0dc2

View file

@ -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]]));
}
}