php 不同版本的php.ini默认文件可以自行下载吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3588038/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 10:19:29  来源:igfitidea点击:

Can the php.ini default file be downloaded by itself for different versions?

php

提问by Metropolis

Instead of copying php.ini files over from old PHP versions whenever I upgrade PHP, I would like to be able to download the newest php-recommended.ini file from somewhere by itself. I have searched for this option on php.net but I could not find it.

每当我升级 PHP 时,我都不想从旧的 PHP 版本复制 php.ini 文件,而是希望能够自己从某个地方下载最新的 php-recommended.ini 文件。我已经在 php.net 上搜索过这个选项,但我找不到它。

It seems like it should be an easy question, but I have not been able to answer it.

看起来这应该是一个简单的问题,但我一直无法回答。

Thanks for any help!
Metropolis

谢谢你的帮助!
都会

采纳答案by prodigitalson

You can grab it from GitHub:

你可以从 GitHub 获取它:

https://github.com/php/php-src

https://github.com/php/php-src

It will be in the root of the trunk/tag/branch you're dealing with.

它将位于您正在处理的主干/标签/分支的根目录中。