Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 12.2.md #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 12.2.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 12.2 MINFO与phpinfo

如果你并不打算做出一个只有你自己使用的扩展,那么你可以需要告诉用户一些关于你的扩展信息。比如:其环境和特定版本的可用功能、版本信息、
作者信息以便你在发生问题的时候可以寻求帮助、甚至可以加上一个LOGO等等。
如果你并不打算做出一个只有你自己使用的扩展,那么你可能需要告诉用户一些关于你的扩展信息。比如:其环境和特定版本的可用功能、版本信息、
作者信息以便用户在发生问题的时候可以寻求帮助、甚至可以加上一个LOGO等等。

如果你仔细看过phpinfo()或者 php -i 的输出,相信你已经注意到,所有这些信息会组合成一个格式良好的、易于解析输出。 你的扩展可以轻松地通过
MINFO (模块信息)来添加这些块,看个例子:
Expand Down