Re: [PHP-DEV] Proposal: php.ini environment variable fallback value

2020-07-27 Thread Derek Bonner
On July 27, 2020 at 8:27:07 PM, Michael Morris (tendo...@gmail.com) wrote: You mention Docker - usually I've seen it used alongside Ansible, Chef or Puppet. Each of these provisioning programs can modify the php.ini file used on the container at deploy time without necessitating a change to PHP it

Re: [PHP-DEV] Proposal: php.ini environment variable fallback value

2020-07-27 Thread Michael Morris
On Mon, Jul 27, 2020 at 12:18 AM Michał Marcin Brzuchalski < michal.brzuchal...@gmail.com> wrote: > Hi Michael, > > niedz., 26 lip 2020, 06:22 użytkownik Michael Morris > napisał: > >> PHP's ini values are already a bit of a mess. You have a global php.ini >> file, and then most PHP ini directiv

Re: [PHP-DEV] Proposal: php.ini environment variable fallback value

2020-07-27 Thread Michał Marcin Brzuchalski
Hi Derek, pt., 24 lip 2020 o 22:54 Derek Bonner napisał(a): > Currently an environment variable can be specified in the php.ini file. > This is useful if you want tune one or two settings in your runtime > environment. Where this runs into issues is if you want to do something > similar to Juan

Re: [PHP-DEV] Proposal: php.ini environment variable fallback value

2020-07-26 Thread Michał Marcin Brzuchalski
Hi Michael, niedz., 26 lip 2020, 06:22 użytkownik Michael Morris napisał: > PHP's ini values are already a bit of a mess. You have a global php.ini > file, and then most PHP ini directives can be set per directory using the > .htaccess file. About a third can be set at runtime. This makes trac

Re: [PHP-DEV] Proposal: php.ini environment variable fallback value

2020-07-25 Thread Michael Morris
PHP's ini values are already a bit of a mess. You have a global php.ini file, and then most PHP ini directives can be set per directory using the .htaccess file. About a third can be set at runtime. This makes tracking down where a setting came from a bit of a headache unless care is taken. This

Re: [PHP-DEV] Proposal: php.ini environment variable fallback value

2020-07-25 Thread Chuck Adams
On Sat, Jul 25, 2020 at 9:30 AM Chuck Adams wrote: > > Not a fan of special syntax for environment variables regardless of > the syntax. I think `$_ENV['foo'] ?? 'bar'` is fine as-is. Not so > much the superglobal, but there's also getenv(). I feel fairly silly, this being for just .ini files.

Re: [PHP-DEV] Proposal: php.ini environment variable fallback value

2020-07-25 Thread Chuck Adams
On Fri, Jul 24, 2020 at 2:54 PM Derek Bonner wrote: > * memory_limit = ${PHP_MEMORY_LIMIT:-"default value"} > * memory_limit = ${PHP_MEMORY_LIMIT::"default value"} > * memory_limit = ${PHP_MEMORY_LIMIT:="default value"} > * memory_limit = ${PHP_MEMORY_LIMIT=="default value"} Not a fan of special

[PHP-DEV] Proposal: php.ini environment variable fallback value

2020-07-24 Thread Derek Bonner
Currently an environment variable can be specified in the php.ini file. This is useful if you want tune one or two settings in your runtime environment. Where this runs into issues is if you want to do something similar to Juan Terminio[1][2]. I'm proposing a change the php.ini parser that would a