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

This is only part of a thread. view whole thread
  111184
July 25, 2020 15:30 cja987@gmail.com (Chuck Adams)
On Fri, Jul 24, 2020 at 2:54 PM Derek Bonner <derek@derekbonner.com> 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 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(). --c
  111188
July 25, 2020 18:47 cja987@gmail.com (Chuck Adams)
On Sat, Jul 25, 2020 at 9:30 AM Chuck Adams <cja987@gmail.com> 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. Seems reasonable enough there, though now we're talking about .ini files no longer being static... --c