# phar enabled by default as of now

- Thread: https://externals.io/message/37670
- Original archive: https://news-web.php.net/php.internals/37670
- Started by Gregory Beaver on 2008-05-16T00:05:35+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #37670 — Gregory Beaver — 2008-05-16T00:05:35+00:00

URL: https://externals.io/message/37670#37670

Hi,

I just committed to ext/phar's config.m4/w32 to make phar enabled by
default as a shared extension.  This is a better default setting than
building phar in statically, as phar has optional dependencies on the
zlib and bz2 extensions to enable compressed phar archives.  If phar is
built statically, then it would require both zlib and bz2 to be built
statically in order to use them, something that is obviously not going
to happen, as they have been around a while and nobody has even
suggested it (to my knowledge).  Having phar shared means one can easily
plug in zlib/bz2 support without recompiling PHP.

I'm open to further input/tweaks on this decision.  If you have a better
idea, go ahead and commit to phar's config.m4/w32, these files are very
easy to change if needed.

Greg

---

## #37698 — Marcus Boerger — 2008-05-18T11:05:46+00:00

URL: https://externals.io/message/37670#37698 · In reply to: #37670

Hello Gregory,

  aren't we simply using streams here only? If so we can still build phar
statically with I'd prefer very much. And the streams stuff would be found
if present. The optional dependency would then ensure correct load order.

marcus

Friday, May 16, 2008, 2:05:35 AM, you wrote:

> Hi,

> I just committed to ext/phar's config.m4/w32 to make phar enabled by
> default as a shared extension.  This is a better default setting than
> building phar in statically, as phar has optional dependencies on the
> zlib and bz2 extensions to enable compressed phar archives.  If phar is
> built statically, then it would require both zlib and bz2 to be built
> statically in order to use them, something that is obviously not going
> to happen, as they have been around a while and nobody has even
> suggested it (to my knowledge).  Having phar shared means one can easily
> plug in zlib/bz2 support without recompiling PHP.

> I'm open to further input/tweaks on this decision.  If you have a better
> idea, go ahead and commit to phar's config.m4/w32, these files are very
> easy to change if needed.

> Greg




Best regards,
 Marcus
