mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
Why do PHP insist the read size for a gzip file be the uncompressed length ... silly
git-svn-id: file:///svn/phpbb/trunk@809 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -997,7 +997,12 @@ if( isset($HTTP_GET_VARS['perform']) || isset($HTTP_POST_VARS['perform']) )
|
||||
|
||||
if($do_gzip_compress)
|
||||
{
|
||||
$sql_query = gzread(gzopen($backup_file_tmpname, 'rb'), filesize($backup_file_tmpname));
|
||||
$gz_ptr = gzopen($backup_file_tmpname, 'rb');
|
||||
$sql_query = "";
|
||||
while( !gzeof($gz_ptr) )
|
||||
{
|
||||
$sql_query .= gzgets($gz_ptr, 100000);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1045,7 +1050,7 @@ if( isset($HTTP_GET_VARS['perform']) || isset($HTTP_POST_VARS['perform']) )
|
||||
echo "Executing: $sql\n<br>";
|
||||
flush();
|
||||
}
|
||||
|
||||
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
if(!$result && ( !(SQL_LAYER == 'postgres' && eregi("drop table", $sql) ) ) )
|
||||
|
Reference in New Issue
Block a user