Edit report at https://bugs.php.net/bug.php?id=63880&edit=1

 ID:                 63880
 Comment by:         payden at paydensutherland dot com
 Reported by:        tobias at freiwuppertal dot de
 Summary:            Implement xz compression
 Status:             Open
 Type:               Feature/Change Request
 Package:            *Compression related
 Operating System:   Irrelevant
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

I started working on a xz extension for PHP.  I got the basics of the writing 
half of it worked out tonight, which is definitely the easy part.  :)  I'll let 
you know when I get a workable extension for testing.

This is what I have so far:

payden@arwen:~$ cat test.php
<?php
ini_set('display_errors','on');
error_reporting(E_ALL);
$fh = fopen("php://stdin", "r");
$xz = xzopen("/tmp/test.xz", "w");
while (!feof($fh)) {
  fwrite($xz, fgets($fh, 1000));
}
fclose($xz);
?>
payden@arwen:~$ php test.php
testing this out....
stdin...
blah.
payden@arwen:~$ xzcat /tmp/test.xz
testing this out....
stdin...
blah.
payden@arwen:~$


Previous Comments:
------------------------------------------------------------------------
[2013-01-01 00:03:18] tobias at freiwuppertal dot de

Description:
------------
http://php.net/manual/en/refs.compression.php

^ xz is not implemented yet, sadly. :-/

https://en.wikipedia.org/wiki/Xz

The compression results are usually significantly better than those of bzip2. 
This feature request currently blocks another one at phpbb:
http://tracker.phpbb.com/browse/PHPBB3-11300



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63880&edit=1

Reply via email to