Re: Proposal: php.ini environment variable fallback value

From: Date: Sat, 25 Jul 2020 15:30:46 +0000
Subject: Re: Proposal: php.ini environment variable fallback value
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-111184@lists.php.net to get a copy of this message
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

« previous php.internals (#111184) next »