Req #63880 [Opn]: Implement xz compression
| From: | tobias at freiwuppertal dot de | Date: | Wed, 07 Dec 2016 14:37:36 +0000 |
| Subject: | Req #63880 [Opn]: Implement xz compression | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205820@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63880&edit=1
ID: 63880
User updated by: tobias at freiwuppertal dot de
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
+PHP Version: 7.1.0
Block user comment: N
Private report: N
New Comment:
Defining a version number to make people aware of this bug. 2013-01-01!
Previous Comments:
------------------------------------------------------------------------
[2013-02-25 16:31:35] tobias at freiwuppertal dot de
Starred & watching :-)
------------------------------------------------------------------------
[2013-02-25 01:51:09] payden at paydensutherland dot com
I've only had a couple of days so far, so I must stress that this is probably very
buggy and I do NOT recommend running this extension on anything considered
production, but feel free to test it out on a development machine, i.e. your
personal Linux box. :)
Also, you'll be able to follow my progress with it if you want:
https://github.com/payden/php-xz
------------------------------------------------------------------------
[2013-02-24 14:23:12] tobias at freiwuppertal dot de
Thank you very much! :-)
------------------------------------------------------------------------
[2013-02-24 08:43:02] payden at paydensutherland dot com
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:~$
------------------------------------------------------------------------
[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