Re: Default values for php.ini environment variables
| From: | Flávio Heleno | Date: | Thu, 13 Jul 2023 15:15:37 +0000 |
| Subject: | Re: Default values for php.ini environment variables | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120807@lists.php.net to get a copy of this message | ||
I don't have voting rights, but this is a very positive addition IMO.
On Thu, Jul 13, 2023 at 10:27 AM Derick Rethans <derick@php.net> wrote:
> Hi,
>
> coming forth out of an Xdebug issue
> (https://bugs.xdebug.org/view.php?id=2174) I made a pull request so that
> it is possible to use a fallback value in environment variables in INI
> files, such as in:
>
> xdebug.start_with_request = ${PHP_XDEBUG_START_WITH_REQUEST:-default}
>
> This is a syntax that bash also supports.
>
> Ilija pointed out an already existing PR
> (https://github.com/php/php-src/pull/11351) which had been extensively
> reviewed. Its author never seem to have emailed the list, so here I am.
> I would like to see this in PHP 8.3, and don't see the need for an RFC.
>
> If there are no objects, I'll merge this in the next few days.
>
> cheers,
> Derick
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: https://www.php.net/unsub.php
>
>
--
Atenciosamente,
Flávio Heleno