[Phpmyadmin-devel] Withdrawing bzip2 export / import?

Michal Čihař michal at cihar.com
Wed Jan 15 09:01:24 CET 2014


Hi

Dne Tue, 14 Jan 2014 10:57:40 -0500
Marc Delisle <marc at infomarc.info> napsal(a):

> I had a look at this bug [0]. Not being able to completely import a .bz2 
> file is serious.

Given that the bug was not discovered for about ten years, I don't see
it that serious.

> The .bz2 generated by phpMyAdmin (with $cfg['CompressOnFly'] being true 
> by default) contains extra headers that are not handled correctly by the 
> bzread() function. This happens for export files reaching a certain size.
> 
> Curiously, the bunzip2 command handles the file correctly.

Indeed it was tested only against bunzip2.

> I see two possible solutions:
> - ask users to uncompress / recompress their .bz2 export file before 
> importing (not elegant; might be difficult to make this procedure known 
> to users)
> 
> - withdraw support for exporting/importing in .bz2

I'd happily remove bz2 and replace it with xz, but unfortunately xz
support in PHP is nowhere near.

-- 
	Michal Čihař | http://cihar.com | http://phpmyadmin.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20140115/fed6ca04/attachment.sig>


More information about the Developers mailing list