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

@@ -13,6 +13,7 @@ $Source$
- Fix code to work around CSS bug in Mozilla/Konqueror with 'inherit' - Fix code to work around CSS bug in Mozilla/Konqueror with 'inherit'
value. value.
- Fix strpos on line 168/169 to work with PHP3 - Fix strpos on line 168/169 to work with PHP3
- Fixed analyze code to remove print_r()
2002-07-25 Marc Delisle <lem9@users.sourceforge.net> 2002-07-25 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html, clarify about mysql extensions * Documentation.html, clarify about mysql extensions

View File

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