libraries/sqlparser.lib.php3:

- Fixed analyze code to remove print_r()
This commit is contained in:
Robin Johnson
2002-07-26 00:01:02 +00:00
parent 4d4fff739b
commit bd50de3e00
2 changed files with 5 additions and 7 deletions

View File

@@ -381,9 +381,8 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) {
$encodedstr = nl2br(chunk_split(base64_encode(gzcompress($debugstr, 9))));
echo $encodedstr . "\n";
echo '---END CUT---<br /><br />' . "\n\n";
//$decodedstr = str_replace('<br />', '', base64_decode(gzuncompress($encodedstr)));
$decodedstr = gzuncompress(base64_decode(str_replace('<br />', '', $encodedstr)));
echo $decodedstr . "\n";
//$decodedstr = /*gzuncompress(*/base64_decode(str_replace('<br />', '', $encodedstr))/*)*/;
//echo $decodedstr . "\n";
echo '</p>' . "\n";
flush();
ob_flush();
@@ -470,7 +469,7 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) {
);
$supported_query_types_cnt = count($supported_query_types);
for ($i = 0; $i <= $size; $i++) {
for ($i = 0; $i < $size; $i++) {
// High speed seek for locating the end of the current query
if ($seek_queryend == TRUE) {
if ($arr[$i]['type'] == 'punct_queryend') {
@@ -514,9 +513,7 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) {
$result[] = $subresult;
}
echo '<pre>';
print_r($result);
echo '</pre>';
return $result;
} // end of the "PMA_SQP_analyze()" function