Re: par/phar/jar (was zend_stream_fixup)
| From: | l0t3k | Date: | Fri, 11 Mar 2005 02:59:48 +0000 |
| Subject: | Re: par/phar/jar (was zend_stream_fixup) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-15367@lists.php.net to get a copy of this message | ||
In about a month or so, i'll start work on an extension implementing a file
format which allows for bundling all resources related to a app (including
PHP source, localized strings, gifs, byte-code from BCompiler etc). the
format has an heirarchical internal structure and allows for introspection
and fallback.
these files will be mmapped and reference counted once loaded for
performance.
This will basically be an adaptation of ICU's resource bundle code, which
has issues with being useful as-is for such projects in multi-host
environments.
The disadvantage over Tar or other archive formats is that they are
standardized, and have lots of available tools which can be used to
manipulate them. The advantage over other formats is that the resources can
be used in-place using a custom PHP stream (i.e. run in place - no
unzipping). Of course, anything can be stuffed into the files, so if
companies want to encrypt source/data, they are able to do so (and use a PHP
stream filter to extract/decrypt).
l0t3k
"Daniel Convissor" <danielc@analysisandsolutions.com> wrote in message
news:20050311014631.GA23206@panix.com...
> On Thu, Mar 10, 2005 at 22:25:39 +0800, Marcus Boerger wrote:
>> For a short idea, we could implement something like jar's possible named
>> par as in php archive :-)
>
> Have you take a look at Davey's proposed PEAR::PHP_Archive package?
> http://pear.php.net/pepr/pepr-proposal-show.php?id=88
>
> --Dan
>
> --
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> data intensive web and database programming
> http://www.AnalysisAndSolutions.com/
> 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409