* [ptxdist] [PATCHv2] php5: enable support for the phar extension.
@ 2016-06-27 11:26 Bruno Thomsen
2016-06-27 11:26 ` [ptxdist] [PATCH] " Bruno Thomsen
0 siblings, 1 reply; 2+ messages in thread
From: Bruno Thomsen @ 2016-06-27 11:26 UTC (permalink / raw)
To: ptxdist; +Cc: bth
Hi
This updated patch was never send by Kalle before he completed
his internship and was hired by another department in the company.
He found that the Phar extension does not work in CLI mode
so this combination is now disabled.
In our use-case it's used in CGI mode for on-the-fly compression
of multiple files before download from a web interface.
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ptxdist] [PATCH] php5: enable support for the phar extension.
2016-06-27 11:26 [ptxdist] [PATCHv2] php5: enable support for the phar extension Bruno Thomsen
@ 2016-06-27 11:26 ` Bruno Thomsen
0 siblings, 0 replies; 2+ messages in thread
From: Bruno Thomsen @ 2016-06-27 11:26 UTC (permalink / raw)
To: ptxdist; +Cc: Kalle Ladefoged Pedersen, bth
v2:
- use ptx/endis
- phar extension is broken in cli.
Signed-off-by: Bruno Thomsen <bth@kamstrup.com>
Signed-off-by: Kalle Ladefoged Pedersen <klp@kamstrup.com>
---
rules/php5.in | 11 +++++++++++
rules/php5.make | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/rules/php5.in b/rules/php5.in
index d2f7baa..a9286e4 100644
--- a/rules/php5.in
+++ b/rules/php5.in
@@ -289,6 +289,17 @@ config PHP5_EXT_PEAR
help
pear
+config PHP5_EXT_PHAR
+ bool
+ prompt "phar"
+ depends on !PHP5_SAPI_CLI
+ help
+ The phar extension provides a way to put entire PHP applications
+ into a single file called "phar" (PHP Archive) for easy
+ distribution and installation. The phar extension also provides
+ a file-format abstraction method for creating and manipulating
+ tar and zip files through the PharData class.
+
endmenu
endif
diff --git a/rules/php5.make b/rules/php5.make
index cc9dc8e..33e842c 100644
--- a/rules/php5.make
+++ b/rules/php5.make
@@ -48,7 +48,7 @@ PHP5_CONF_ENV := \
#
PHP5_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
- --disable-phar \
+ --$(call ptx/endis, PTXCONF_PHP5_EXT_PHAR)-phar \
--with-config-file-path=/etc/php5 \
--enable-opcache=no \
--without-iconv
--
2.5.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-27 11:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-27 11:26 [ptxdist] [PATCHv2] php5: enable support for the phar extension Bruno Thomsen
2016-06-27 11:26 ` [ptxdist] [PATCH] " Bruno Thomsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox