[wp-hackers] wp-filesystem

DD32 wordpress at dd32.id.au
Tue Mar 4 11:32:57 GMT 2008

On Tue, 04 Mar 2008 19:29:05 +1100, Anirudh Sanjeev <anirudh at anirudhsanjeev.org> wrote:

>> However, I'm interested in your Unzipping, At present, WP is using a
>> pure-php unsipping method as you've noticed, Its got some limitations on
>> certain setups(In the sense that it simply doesnt work -- i think it reaches
>> the limit of an int..). What it really needs IMO is to use the PHP Zip
>> extension if available, else use the zlib library if compiled in(90% of
>> situations i think?) else revert to pure php.
> Firstly, the zlib library is there in under 5% of the situations.

Ok, So i got my numbers mixed up, 90% of situations its not available :P

> I used a php file to unzip files, a phpzip library actually. But turns out
> that on some servers, there are some difficulties that the files created are
> registered to the php "user" and ftp cannot delete them. Since this is on
> unix based systems, I overcame this by using

Thats basically the current method, Except it uses the filesystem wrapper(direct or ftp access) so that the files are owned by the same user, that way, they can be deleted by ftp.

> <?php
> exec("tar -xvwf $filename");
> ?>
> And the other regular method can work as a fallback method.

More information about the wp-hackers mailing list