Re: [docker-compose] append directory to PHP_INI_SCAN_DIR environment variable
Arno Welzel <[email protected]>
| Newsgroups | comp.lang.php |
|---|---|
| Message-ID | <[email protected]> |
Arno Welzel, 2022-12-23 18:48:
> Custom Log, 2022-12-23 17:41:
>
>> $ cat docker-compose.yml
>> services:
>> web:
>> image: php:apache
>> environment:
>> - PHP_INI_SCAN_DIR=$HOME/etc/php:$ORIGINAL
>>
>> $ docker-compose up -d
>> WARNING: The ORIGINAL variable is not set. Defaulting to a blank string.
>>
>> How do I recover the original (current) $PHP_INI_SCAN_DIR?
>
> There is no "original" value for that. This variable is usually not set.
In addition: if the variable *is* set, then you just use it:
- PHP_INI_SCAN_DIR=$HOME/etc/php:$PHP_INI_SCAN_DIR
--
Arno Welzel
https://arnowelzel.de