Commit Graph

16 Commits

Author SHA1 Message Date
Joe Ferguson
a041c4250b Add ini-name to ext-install to pass along to ext-enable
Support an absolute path for --ini-name
2020-06-02 10:41:14 -07:00
Tianon Gravi
a7e2de0e8f Send PHP errors/warnings to stderr in our scripts 2019-06-07 14:00:03 -07:00
Chris Jones
54c2790f09
Sets PHP error level for getting extension dir
If an uncaught exception is thrown during parsing of the php.ini file, `$extDir` will contain a combination of the exception and the path.  This script shouldn't care about error messages though as long as it gets the path.  This updates the script so that php won't emit any error messages.
2019-06-06 14:10:55 -04:00
Tianon Gravi
a1ebdc9851 Remove "--virtual" where it's not providing value (and use "apk del --no-network" consistently) 2019-03-04 16:41:05 -08:00
Christian Daguerre
d5bdcd6f8c
fix hardcoded ini dir 2018-11-09 10:21:18 +01:00
Tianon Gravi
f504394473 Fix a few superficial issues with "docker-php-ext-enable" 2018-04-19 12:51:31 -07:00
Tianon Gravi
1a00d92ff4 Switch from "nm" to "readelf" so that we can detect the "zend_extension_entry" symbol even in stripped objects 2017-12-08 16:25:01 -08:00
Tianon Gravi
511db0eb59 Fix "ouptut" typo from https://github.com/docker-library/php/pull/497 2017-09-19 17:03:52 -07:00
Joe Ferguson
c7a848cc37 Explain that some modules listed in docker-php-ext-* scripts are already compiled in 2017-09-19 15:43:41 -07:00
Tianon Gravi
4cfa24e13f Install "binutils" in "docker-php-ext-enable" if needed
This matches the behavior of `docker-php-ext-configure` and `docker-php-ext-install`, and ensures that `nm` is installed and then removed in Alpine where necessary.
2017-05-04 11:43:14 -07:00
Tianon Gravi
3bf5b82235 Convert all Dockerfiles to be template-based, and resync a few minor bits of Alpine and Debian (libedit in both, no recode in either, POSIX shell versions of docker-php-ext-* scripts for all) 2016-03-18 10:57:31 -07:00
Tianon Gravi
ad14a69d31 Add "--ini-name" flag to docker-php-ext-enable (especially for controlling order) 2016-01-19 16:51:47 -08:00
Tianon Gravi
bdf240ee2a Use "nm" to list actual symbols from the module to check for the "zend_extension_entry" symbol (fixes false positives like xcache) 2016-01-06 16:30:39 -08:00
Dmitry Lukashin
a3508a6653 Get rid of unneeded variable 2015-08-07 03:48:56 +03:00
Dmitry Lukashin
878e6efc37 Full path for loading zend extensions 2015-08-07 03:05:52 +03:00
Tianon Gravi
fef9f6ec8a Add new "docker-php-ext-enable" script for more intelligent module enabling
This also updates `docker-php-ext-install` to invoke this script properly after successful extension compilation.

If modules are determined to already be enabled, it'll skip them appropriately.

This removes simple warnings like `PHP Warning:  Module 'curl' already loaded in Unknown on line 0`, and enables things like `pecl install mongo && docker-php-ext-enable mongo`.
2015-08-04 16:04:25 -07:00