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:
jakubvrana 2009-08-27 07:28:48 +00:00
parent c93a4f9940
commit 4e19d6e034

View file

@ -132,9 +132,13 @@ function php_shrink($input) {
if ($tokens[$i+1][0] === T_ECHO) {
// join two consecutive echos
next($tokens);
<<<<<<< HEAD:compile.php
$token[1] = '.'; //! join ''.'' and "".""
} else {
$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]])) {
$token[1] = '$' . $short_variables[$token[1]];