|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-01-01 00:03 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 14:00:01 2025 UTC |
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:~$