[Phpmyadmin-devel] Withdrawing bzip2 export / import?
Marc Delisle
marc at infomarc.info
Tue Jan 14 16:57:40 CET 2014
Hi,
I had a look at this bug [0]. Not being able to completely import a .bz2
file is 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.
Forcing $cfg['CompressOnFly'] to false for .bz2 will only bring us
memory problems at export time.
I have contacted the author of bzip, asking for an opinion. No answer so
far after four days.
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
[0] https://sourceforge.net/p/phpmyadmin/bugs/4221/
--
Marc Delisle
http://infomarc.info | http://phpmyadmin.net
More information about the Developers
mailing list