Re: [PHP-DEV] Re: Implement lzma (xz?) compression (was Req #63880)

2019-08-19 Thread Joe Watkins
Note, while reading the code I noticed it doing some odd things with
strings (see casting away constness in patch) ... this wants a maintainer,
I was just getting the build going [and not volunteering] ...

Cheers
Joe

PS. Sorry about double post ...

On Mon, 19 Aug 2019 at 15:42, Joe Watkins  wrote:

> Afternoon,
>
> Patch for php7:
> https://gist.github.com/krakjoe/549ec38161ecd1ad9b8f16f6cf18657e
>
> Run with it, or not ...
>
> Cheers
> Joe
>
>
> On Mon, 19 Aug 2019 at 14:43, Christoph M. Becker 
> wrote:
>
>> Hi!
>>
>> On 19.08.2019 at 12:47, Tobias Frei wrote:
>>
>> > Today I was asked to contact this list about the 2013-01-01 proposal
>> > described in Feature Request 63880.
>> >
>> > https://bugs.php.net/bug.php?id=63880
>> >
>> > Please implement some kind of lzma compression, e.g. xz or lzip,
>> > alongside gzip and bzip2 in php.
>> >
>> > The original proposal asked for xz compression; it seems that one may
>> > argue in favor of a different implementation such as lzip for reasons I
>> > found today at
>> > https://www.nongnu.org/lzip/xz_inadequate.html
>> >
>> > My request, although originally made for xz compression, is about
>> > implementing lzma (or any kind of modern, strong) compression in php to
>> > hopefully easily replace bzip2 in user applications, such as phpBB's
>> > database backup function.
>> >
>> > Anyone may freely open an RFC or onwiki discussion about this on my
>> > behalf whenever they like to, and even if they read this message
>> > multiple years later.
>>
>> Thanks for bringing this topic to internals@!
>>
>> In my opinion, this extension should start as PECL extension.  This
>> would allow it to be developed independently of the PHP release cycle,
>> and the API could be adapted if necessary.  After the extension has been
>> stabilized, and if the extension turns out to be generally useful, it
>> still could be bundled.
>>
>> Thanks,
>> Christoph
>>
>> --
>> PHP Internals - PHP Runtime Development Mailing List
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>


Re: [PHP-DEV] Re: Implement lzma (xz?) compression (was Req #63880)

2019-08-19 Thread Joe Watkins
Afternoon,

Patch for php7:
https://gist.github.com/krakjoe/549ec38161ecd1ad9b8f16f6cf18657e

Run with it, or not ...

Cheers
Joe


On Mon, 19 Aug 2019 at 14:43, Christoph M. Becker  wrote:

> Hi!
>
> On 19.08.2019 at 12:47, Tobias Frei wrote:
>
> > Today I was asked to contact this list about the 2013-01-01 proposal
> > described in Feature Request 63880.
> >
> > https://bugs.php.net/bug.php?id=63880
> >
> > Please implement some kind of lzma compression, e.g. xz or lzip,
> > alongside gzip and bzip2 in php.
> >
> > The original proposal asked for xz compression; it seems that one may
> > argue in favor of a different implementation such as lzip for reasons I
> > found today at
> > https://www.nongnu.org/lzip/xz_inadequate.html
> >
> > My request, although originally made for xz compression, is about
> > implementing lzma (or any kind of modern, strong) compression in php to
> > hopefully easily replace bzip2 in user applications, such as phpBB's
> > database backup function.
> >
> > Anyone may freely open an RFC or onwiki discussion about this on my
> > behalf whenever they like to, and even if they read this message
> > multiple years later.
>
> Thanks for bringing this topic to internals@!
>
> In my opinion, this extension should start as PECL extension.  This
> would allow it to be developed independently of the PHP release cycle,
> and the API could be adapted if necessary.  After the extension has been
> stabilized, and if the extension turns out to be generally useful, it
> still could be bundled.
>
> Thanks,
> Christoph
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


[PHP-DEV] Re: Implement lzma (xz?) compression (was Req #63880)

2019-08-19 Thread Christoph M. Becker
Hi!

On 19.08.2019 at 12:47, Tobias Frei wrote:

> Today I was asked to contact this list about the 2013-01-01 proposal
> described in Feature Request 63880.
>
> https://bugs.php.net/bug.php?id=63880
>
> Please implement some kind of lzma compression, e.g. xz or lzip,
> alongside gzip and bzip2 in php.
>
> The original proposal asked for xz compression; it seems that one may
> argue in favor of a different implementation such as lzip for reasons I
> found today at
> https://www.nongnu.org/lzip/xz_inadequate.html
>
> My request, although originally made for xz compression, is about
> implementing lzma (or any kind of modern, strong) compression in php to
> hopefully easily replace bzip2 in user applications, such as phpBB's
> database backup function.
>
> Anyone may freely open an RFC or onwiki discussion about this on my
> behalf whenever they like to, and even if they read this message
> multiple years later.

Thanks for bringing this topic to internals@!

In my opinion, this extension should start as PECL extension.  This
would allow it to be developed independently of the PHP release cycle,
and the API could be adapted if necessary.  After the extension has been
stabilized, and if the extension turns out to be generally useful, it
still could be bundled.

Thanks,
Christoph

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php