Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111206 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 66839 invoked from network); 28 Jul 2020 04:31:13 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Jul 2020 04:31:13 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id ACC1718050A for ; Mon, 27 Jul 2020 20:27:01 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 27 Jul 2020 20:27:01 -0700 (PDT) Received: by mail-ot1-f54.google.com with SMTP id h1so13884043otq.12 for ; Mon, 27 Jul 2020 20:27:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PY2rIdwO2hIBaPdXZeJd/S71lb/AWm4ipuNVexLIFMg=; b=mKmj2x9s1QMeqHuf5paiedZGrrWUpreoV5FAXZ1ft1cIY+QUpHsLl44OMvtJQl1JfP Vmeu08BhDzXf8Eitmz3fJHCzGlpIqwkiurrIRqbj19+Ew1GhkzY7sfsGom3XWkznhUKE CNLUTs+Tqg1H1BNcTLJOUYk7V4LoE8/9ya/pJavzsI0M2UqB7fvNItTBrZcTiHDXjYXc vt9W/nVde9wmx6DGKjWPYS7YigwCOljMpXSIYJYnAoJv8Q8CG9iq/QhUtXMNDcNYnH3y 9HPHbF4Y86AU8BJTRzV8kOR45/DLdwQ4u8DVCEUk1LI7nJyKLvKFzVJ9pqlxJXO4PHrd s/aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PY2rIdwO2hIBaPdXZeJd/S71lb/AWm4ipuNVexLIFMg=; b=YClT7g+pqjqemz5mO10KcWDEv9Ptdy8Qc6xQlw7wLlOPztW/1volMkujaQ1OhX8ra3 5fvA8YBt3+6GHc2JncBg9o4bDtEW4dLNhGZs7d9x1UXRYTAgwxB7QOkcuxD/xBHN6r7l tA3He4O3FZsdKz9L8FySPwZeIs6DqNUxjXJShei7gm6p0qHsjCBAyrSPgEV6Cb5csLGL Cp2XedFiA3QtPz8d2r243V7ipCLmgC+sX2Z/olEKy5ekXGA28wB3J6mBpoKmjx3Msxbn hc0KMxyim0nUojVUrmfoO6X0uc7YXOGNNkQysdNIG0giViuwry1V8pxIBZ7jx7X6ir4Q 3J3A== X-Gm-Message-State: AOAM533MfJTq008swgnhWw7GDiNQ53CdgD5FpEjqu3tHYAn8LGBEQSen I8WVBaIpNcsCP3yymkcrzZAcYXFOCD3cTZuErlU= X-Google-Smtp-Source: ABdhPJyX1XnTg8GxwxuSkFtafu1j0joBkaUcwzltDV6soFFj8oIzOSlVEir8q72npmQjemjDeBFD8rLeDmiWK4GP2Kg= X-Received: by 2002:a05:6830:1b79:: with SMTP id d25mr4113883ote.107.1595906818749; Mon, 27 Jul 2020 20:26:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 27 Jul 2020 22:26:48 -0500 Message-ID: To: =?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?= Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000006b70e05ab780364" Subject: Re: [PHP-DEV] Proposal: php.ini environment variable fallback value From: tendoaki@gmail.com (Michael Morris) --00000000000006b70e05ab780364 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jul 27, 2020 at 12:18 AM Micha=C5=82 Marcin Brzuchalski < michal.brzuchalski@gmail.com> wrote: > Hi Michael, > > niedz., 26 lip 2020, 06:22 u=C5=BCytkownik Michael Morris > napisa=C5=82: > >> 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 th= e >> .htaccess file. About a third can be set at runtime. This makes trackin= g >> down where a setting came from a bit of a headache unless care is taken. >> This proposal promises to make the situation even more complicated. >> >> Also, what would this solve that using .htaccess files to override the >> default values not solve aside from the rare settings that cannot be set >> per directory? >> > > Bear in mind that .htaccess has a very narrow use and it's kind oh thing > Apache2 related and not PHP specific! > Most major webserver applications have an equivalent to .htaccess. Indeed, IIS can bind PHP flags and values to environment values already if I recall correctly, and has been able to do so for a very long time (though I haven't played with IIS in over a decade so my memory could be wrong on this). 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 itself. What advantage does the community gain from moving these decisions from the provision files to the php.ini file? > --00000000000006b70e05ab780364--