diff --git a/ChangeLog b/ChangeLog index 3ebf0cae0..00e00e7c6 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ $Source$ * libraries/sqlparser.lib.php3: - Fixed ANSI type string escaping - Fixed formatting wrt. whitespace in FormatHTML + - PHP3 fix for gzcompress bug code 2002-07-26 Marc Delisle * Documentation.html: numbers for faq entries diff --git a/libraries/sqlparser.lib.php3 b/libraries/sqlparser.lib.php3 index 423457f0c..25b0bd823 100644 --- a/libraries/sqlparser.lib.php3 +++ b/libraries/sqlparser.lib.php3 @@ -383,11 +383,12 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) { $debugstr .= 'Leftover: ' . substr($sql, $count1, $count2 - $count1) . '
' . "\n"; $debugstr .= 'A: ' . $count1 . ' ' . $count2 . '
' . "\n"; $debugstr .= 'SQL: ' . $sql; - $encodedstr = nl2br(chunk_split(base64_encode(gzcompress($debugstr, 9)))); + if (PMA_PHP_INT_VERSION >= 40001 && @function_exists('gzcompress')) { + $debugstr = gzcompress($debugstr, 9); + } + $encodedstr = nl2br(chunk_split(base64_encode($debugstr))); echo $encodedstr . "\n"; echo '---END CUT---

' . "\n\n"; - //$decodedstr = /*gzuncompress(*/base64_decode(str_replace('
', '', $encodedstr))/*)*/; - //echo $decodedstr . "\n"; echo '

' . "\n"; flush(); ob_flush();