Use comma in consecutive echos
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1025 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
c93a4f9940
commit
4e19d6e034
|
@ -132,9 +132,13 @@ function php_shrink($input) {
|
||||||
if ($tokens[$i+1][0] === T_ECHO) {
|
if ($tokens[$i+1][0] === T_ECHO) {
|
||||||
// join two consecutive echos
|
// join two consecutive echos
|
||||||
next($tokens);
|
next($tokens);
|
||||||
|
<<<<<<< HEAD:compile.php
|
||||||
$token[1] = '.'; //! join ''.'' and "".""
|
$token[1] = '.'; //! join ''.'' and "".""
|
||||||
} else {
|
} else {
|
||||||
$in_echo = false;
|
$in_echo = false;
|
||||||
|
=======
|
||||||
|
$token[1] = ','; // '.' would conflict with "a".1+2 and would use more memory //! remove ',' and ","
|
||||||
|
>>>>>>> Use comma in consecutive echos:compile.php
|
||||||
}
|
}
|
||||||
} elseif ($token[0] === T_VARIABLE && !isset($special_variables[$token[1]])) {
|
} elseif ($token[0] === T_VARIABLE && !isset($special_variables[$token[1]])) {
|
||||||
$token[1] = '$' . $short_variables[$token[1]];
|
$token[1] = '$' . $short_variables[$token[1]];
|
||||||
|
|
Loading…
Reference in a new issue