make install overwriting php.ini

php.internals

Mark Tomlin

3 years ago
To the release managers of PHP, please make sure that you do not overwrite the php.ini file. Making the php.ini.defaults file in the */usr/local/lib* is fine, but overwriting it when running *make install* is going to break some setups. This happened in both 8.2.0RC1 and now 8.2.0RC2. Please and thank you.
-- Thank you for your time, Mark 'Dygear' Tomlin;

Jordan LeDoux

3 years ago
On Fri, Sep 16, 2022 at 6:27 PM Mark Tomlin <dygear@gmail.com> wrote:
> To the release managers of PHP, please make sure that you do not overwrite > the php.ini file. Making the php.ini.defaults file in the */usr/local/lib* > is fine, but overwriting it when running *make install* is going to break > some setups. This happened in both 8.2.0RC1 and now 8.2.0RC2. > > Please and thank you. > > -- > Thank you for your time, > Mark 'Dygear' Tomlin; >
I thought the `php.ini.defaults` file was owned by the PHP build process, and the proper way to use it is to copy it before modifying? I'm fairly certain that's documented. This sounds like a "do it the wrong way at your own risk" type thing? Jordan

Ben Ramsey

3 years ago
> On Sep 16, 2022, at 20:27, Mark Tomlin <dygear@gmail.com> wrote: > > To the release managers of PHP, please make sure that you do not overwrite > the php.ini file. Making the php.ini.defaults file in the */usr/local/lib* > is fine, but overwriting it when running *make install* is going to break > some setups. This happened in both 8.2.0RC1 and now 8.2.0RC2. > > Please and thank you.
Mark, Running `make install` should not overwrite your system’s php.ini file. When the release managers package a PHP release, we do not do anything that would overwrite your system’s php.ini file. Can you share more information about how you’re installing PHP and what behavior you are seeing? Be as detailed as you can. That’ll help us figure out if there’s a bug somewhere. Cheers, Ben

Mark Tomlin

3 years ago
Thanks for the reply Ben, once I get home I’ll send what I did exactly. Sent from my iPad