Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120805 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 75548 invoked from network); 13 Jul 2023 13:27:03 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 Jul 2023 13:27:03 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 94221180339 for ; Thu, 13 Jul 2023 06:26:59 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_05,SPF_HELO_PASS, SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS30827 82.113.144.0/20 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Thu, 13 Jul 2023 06:26:59 -0700 (PDT) Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 260BA10C5F6; Thu, 13 Jul 2023 14:26:58 +0100 (BST) Date: Thu, 13 Jul 2023 14:26:57 +0100 (BST) To: PHP Developers Mailing List cc: PHP Release Managers , hi@m7.rs Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Default values for php.ini environment variables From: derick@php.net (Derick Rethans) 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