可以在 php.ini 中使用下列配置选项对 PHP 进行配置。
“可修改范围”列决定了该配置选项在什么情况下可以被设置。查看 配置可被设定范围 列表查看具体定义。
名字 | 默认 | 可修改范围 | 更新日志 |
---|---|---|---|
allow_url_fopen | "1" | PHP_INI_SYSTEM | |
allow_url_include | "0" | PHP_INI_SYSTEM | 从 PHP 7.4.0 开始被废弃。 |
arg_separator.input | "&" | PHP_INI_PERDIR | |
arg_separator.output | "&" | PHP_INI_ALL | |
assert.active | "1" | PHP_INI_ALL | |
assert.bail | "0" | PHP_INI_ALL | |
assert.callback | NULL | PHP_INI_ALL | |
assert.exception | "0" | PHP_INI_ALL | |
assert.quiet_eval | "0" | PHP_INI_ALL | |
assert.warning | "1" | PHP_INI_ALL | |
auto_append_file | NULL | PHP_INI_PERDIR | |
auto_detect_line_endings | "0" | PHP_INI_ALL | |
auto_globals_jit | "1" | PHP_INI_PERDIR | |
auto_prepend_file | NULL | PHP_INI_PERDIR | |
bcmath.scale | "0" | PHP_INI_ALL | |
browscap | NULL | PHP_INI_SYSTEM | |
cgi.check_shebang_line | "1" | PHP_INI_SYSTEM | |
cgi.discard_path | "0" | PHP_INI_SYSTEM | |
cgi.fix_pathinfo | "1" | PHP_INI_SYSTEM | |
cgi.force_redirect | "1" | PHP_INI_SYSTEM | |
cgi.nph | "0" | PHP_INI_ALL | |
cgi.redirect_status_env | NULL | PHP_INI_SYSTEM | |
cgi.rfc2616_headers | "0" | PHP_INI_ALL | |
child_terminate | "0" | PHP_INI_ALL | |
cli.pager | "" | PHP_INI_ALL | 自 PHP 5.4.0 可用. |
cli.prompt | "\\b \\> " | PHP_INI_ALL | 自 PHP 5.4.0 可用. |
cli_server.color | "0" | PHP_INI_ALL | PHP 5.4.0. 起生效 |
com.allow_dcom | "0" | PHP_INI_SYSTEM | |
com.autoregister_typelib | "0" | PHP_INI_ALL | |
com.autoregister_verbose | "0" | PHP_INI_ALL | |
com.autoregister_casesensitive | "1" | PHP_INI_ALL | |
com.code_page | "" | PHP_INI_ALL | |
com.dotnet_version | "" | PHP_INI_SYSTEM | As of PHP 8.0.0 |
com.typelib_file | "" | PHP_INI_SYSTEM | |
curl.cainfo | NULL | PHP_INI_SYSTEM | 自 PHP 5.3.7. 起有效 |
date.default_latitude | "31.7667" | PHP_INI_ALL | |
date.default_longitude | "35.2333" | PHP_INI_ALL | |
date.sunrise_zenith | "90.83" | PHP_INI_ALL | |
date.sunset_zenith | "90.83" | PHP_INI_ALL | |
date.timezone | "" | PHP_INI_ALL | |
dba.default_handler | DBA_DEFAULT | PHP_INI_ALL | |
default_charset | "UTF-8" | PHP_INI_ALL | 默认值为 "UTF-8" |
default_mimetype | "text/html" | PHP_INI_ALL | |
default_socket_timeout | "60" | PHP_INI_ALL | |
disable_classes | "" | php.ini only | |
disable_functions | "" | php.ini only | |
display_errors | "1" | PHP_INI_ALL | |
display_startup_errors | "0" | PHP_INI_ALL | |
docref_ext | "" | PHP_INI_ALL | |
docref_root | "" | PHP_INI_ALL | |
doc_root | NULL | PHP_INI_SYSTEM | |
enable_dl | "1" | PHP_INI_SYSTEM | 本过时特性将肯定会在未来被移除。 |
enable_post_data_reading | On | PHP_INI_PERDIR | |
engine | "1" | PHP_INI_ALL | |
error_append_string | NULL | PHP_INI_ALL | |
error_log | NULL | PHP_INI_ALL | |
error_prepend_string | NULL | PHP_INI_ALL | |
error_reporting | NULL | PHP_INI_ALL | |
exif.encode_unicode | "ISO-8859-15" | PHP_INI_ALL | |
exif.decode_unicode_motorola | "UCS-2BE" | PHP_INI_ALL | |
exif.decode_unicode_intel | "UCS-2LE" | PHP_INI_ALL | |
exif.encode_jis | "" | PHP_INI_ALL | |
exif.decode_jis_motorola | "JIS" | PHP_INI_ALL | |
exif.decode_jis_intel | "JIS" | PHP_INI_ALL | |
exit_on_timeout | "" | PHP_INI_ALL | |
expect.timeout | "10" | PHP_INI_ALL | |
expect.loguser | "1" | PHP_INI_ALL | |
expect.logfile | "" | PHP_INI_ALL | |
expect.match_max | "" | PHP_INI_ALL | |
expose_php | "1" | php.ini only | |
extension | NULL | php.ini only | |
extension_dir | "/path/to/php" | PHP_INI_SYSTEM | |
fastcgi.impersonate | "0" | PHP_INI_SYSTEM | |
fastcgi.logging | "1" | PHP_INI_SYSTEM | |
fbsql.allow_persistent | "1" | PHP_INI_SYSTEM | |
fbsql.autocommit | "1" | PHP_INI_SYSTEM | |
fbsql.batchsize | "1000" | PHP_INI_ALL | |
fbsql.default_database | "" | PHP_INI_SYSTEM | |
fbsql.default_database_password | "" | PHP_INI_SYSTEM | |
fbsql.default_host | NULL | PHP_INI_SYSTEM | |
fbsql.default_password | "" | PHP_INI_SYSTEM | |
fbsql.default_user | "_SYSTEM" | PHP_INI_SYSTEM | |
fbsql.generate_warnings | "0" | PHP_INI_SYSTEM | |
fbsql.max_connections | "128" | PHP_INI_SYSTEM | |
fbsql.max_links | "128" | PHP_INI_SYSTEM | |
fbsql.max_persistent | "-1" | PHP_INI_SYSTEM | |
fbsql.max_results | "128" | PHP_INI_SYSTEM | |
fbsql.show_timestamp_decimals | "0" | PHP_INI_SYSTEM | |
file_uploads | "1" | PHP_INI_SYSTEM | |
filter.default | "unsafe_raw" | PHP_INI_PERDIR | |
filter.default_flags | NULL | PHP_INI_PERDIR | |
from | "" | PHP_INI_ALL | |
gd.jpeg_ignore_warning | "1" | PHP_INI_ALL | |
geoip.custom_directory | "" | PHP_INI_ALL | |
hard_timeout | "2" | PHP_INI_SYSTEM | PHP 7.1.0 起可用 |
highlight.comment | "#FF8000" | PHP_INI_ALL | |
highlight.default | "#0000BB" | PHP_INI_ALL | |
highlight.html | "#000000" | PHP_INI_ALL | |
highlight.keyword | "#007700" | PHP_INI_ALL | |
highlight.string | "#DD0000" | PHP_INI_ALL | |
html_errors | "1" | PHP_INI_ALL | |
ibase.allow_persistent | "1" | PHP_INI_SYSTEM | |
ibase.max_persistent | "-1" | PHP_INI_SYSTEM | |
ibase.max_links | "-1" | PHP_INI_SYSTEM | |
ibase.default_db | NULL | PHP_INI_SYSTEM | |
ibase.default_user | NULL | PHP_INI_ALL | |
ibase.default_password | NULL | PHP_INI_ALL | |
ibase.default_charset | NULL | PHP_INI_ALL | |
ibase.timestampformat | "%Y-%m-%d %H:%M:%S" | PHP_INI_ALL | |
ibase.dateformat | "%Y-%m-%d" | PHP_INI_ALL | |
ibase.timeformat | "%H:%M:%S" | PHP_INI_ALL | |
ibm_db2.binmode | "1" | PHP_INI_ALL | |
ibm_db2.i5_all_pconnect | "0" | PHP_INI_SYSTEM | Available since ibm_db2 1.6.5. |
ibm_db2.i5_allow_commit | "0" | PHP_INI_SYSTEM | Available since ibm_db2 1.4.9. |
ibm_db2.i5_dbcs_alloc | "0" | PHP_INI_SYSTEM | Available since ibm_db2 1.5.0. |
ibm_db2.instance_name | NULL | PHP_INI_SYSTEM | Available since ibm_db2 1.0.2. |
ibm_db2.i5_ignore_userid | "0" | PHP_INI_SYSTEM | Available since ibm_db2 1.8.0. |
iconv.input_encoding | "" | PHP_INI_ALL | 在 PHP 5.6.0 中废弃。 |
iconv.output_encoding | "" | PHP_INI_ALL | 在 PHP 5.6.0 中废弃。 |
iconv.internal_encoding | "" | PHP_INI_ALL | 在 PHP 5.6.0 中废弃。 |
ignore_repeated_errors | "0" | PHP_INI_ALL | |
ignore_repeated_source | "0" | PHP_INI_ALL | |
ignore_user_abort | "0" | PHP_INI_ALL | |
implicit_flush | "0" | PHP_INI_ALL | |
include_path | ".:/path/to/php/pear" | PHP_INI_ALL | |
intl.default_locale | PHP_INI_ALL | ||
intl.error_level | 0 | PHP_INI_ALL | |
intl.use_exceptions | 0 | PHP_INI_ALL | Available since PECL 3.0.0a1 |
ingres.allow_persistent | "1" | PHP_INI_SYSTEM | Available since ingres 1.0.0 |
ingres.array_index_start | "1" | PHP_INI_ALL | Available since ingres 1.4.0. |
ingres.auto | "1" | PHP_INI_ALL | Available since ingres 2.0.0. |
ingres.blob_segment_length | "4096" | PHP_INI_ALL | Available since ingres 1.2.0. |
ingres.cursor_mode | "0" | PHP_INI_ALL | Available since ingres 1.1.0. |
ingres.default_database | NULL | PHP_INI_ALL | Available since ingres 1.0.0 |
ingres.default_password | NULL | PHP_INI_ALL | Available since ingres 1.0.0 |
ingres.default_user | NULL | PHP_INI_ALL | Available since ingres 1.0.0 |
ingres.describe | 1 | PHP_INI_ALL | Available since ingres 2.1.0 |
ingres.fetch_buffer_size | 100 | PHP_INI_ALL | Available since ingres 2.1.0 |
ingres.max_links | "-1" | PHP_INI_SYSTEM | Available since ingres 1.0.0 |
ingres.max_persistent | "-1" | PHP_INI_SYSTEM | Available since ingres 1.0.0 |
ingres.reuse_connection | "1" | PHP_INI_ALL | Available since ingres 2.0.0 |
ingres.scrollable | "1" | PHP_INI_ALL | Available since ingres 2.0.0. |
ingres.trace | "0" | PHP_INI_ALL | Available since ingres 2.0.0. |
ingres.trace_connect | "0" | PHP_INI_ALL | Available since ingres 1.2.1. |
ingres.utf8 | "1" | PHP_INI_ALL | Available since ingres 2.0.0. |
last_modified | "0" | PHP_INI_ALL | |
ldap.max_links | "-1" | PHP_INI_SYSTEM | |
log_errors | "0" | PHP_INI_ALL | |
log_errors_max_len | "1024" | PHP_INI_ALL | |
mail.add_x_header | "0" | PHP_INI_PERDIR | |
mail.force_extra_parameters | NULL | php.ini only | |
mail.log | "" | PHP_INI_PERDIR | |
max_execution_time | "30" | PHP_INI_ALL | |
max_input_nesting_level | "64" | PHP_INI_PERDIR | |
max_input_vars | 1000 | PHP_INI_PERDIR | |
max_input_time | "-1" | PHP_INI_PERDIR | |
mbstring.language | "neutral" | PHP_INI_ALL | PHP_INI_PERDIR 位于 PHP <= 5.2.6 |
mbstring.detect_order | NULL | PHP_INI_ALL | |
mbstring.http_input | "pass" | PHP_INI_ALL | |
mbstring.http_output | "pass" | PHP_INI_ALL | |
mbstring.internal_encoding | NULL | PHP_INI_ALL | |
mbstring.script_encoding | NULL | PHP_INI_ALL | 在 PHP 5.4.0. 中移除, 使用 zend.script_encoding 代替。 |
mbstring.substitute_character | NULL | PHP_INI_ALL | |
mbstring.func_overload | "0" | PHP_INI_SYSTEM | PHP <= 5.2.6 是 PHP_INI_PERDIR。 Deprecated as of PHP 7.2.0; removed as of PHP 8.0.0. |
mbstring.encoding_translation | "0" | PHP_INI_PERDIR | |
mbstring.http_output_conv_mimetypes | "^(text/|application/xhtml\+xml)" | PHP_INI_ALL | Available as of PHP 5.3.0. |
mbstring.strict_detection | "0" | PHP_INI_ALL | 自 PHP 5.1.2 起有效。 |
mcrypt.algorithms_dir | null |
PHP_INI_ALL | |
mcrypt.modes_dir | null |
PHP_INI_ALL | |
memcache.allow_failover | "1" | PHP_INI_ALL | Available since memcache 2.0.2. |
memcache.max_failover_attempts | "20" | PHP_INI_ALL | Available since memcache 2.1.0. |
memcache.chunk_size | "8192" | PHP_INI_ALL | Available since memcache 2.0.2. |
memcache.default_port | "11211" | PHP_INI_ALL | Available since memcache 2.0.2. |
memcache.hash_strategy | "standard" | PHP_INI_ALL | Available since memcache 2.2.0. |
memcache.hash_function | "crc32" | PHP_INI_ALL | Available since memcache 2.2.0. |
session.save_handler | "files" | PHP_INI_ALL | Supported since memcache 2.1.2 |
session.save_path | "" | PHP_INI_ALL | Supported since memcache 2.1.2 |
memcache.protocol | ascii | >PHP_INI_ALL | Supported since memcache 3.0.0 |
memcache.redundancy | 1 | >PHP_INI_ALL | Supported since memcache 3.0.0 |
memcache.session_redundancy | 2 | >PHP_INI_ALL | Supported since memcache 3.0.0 |
memcache.compress_threshold | 20000 | >PHP_INI_ALL | Supported since memcache 3.0.3 |
memcache.lock_timeout | 15 | >PHP_INI_ALL | Supported since memcache 3.0.4 |
memory_limit | "128M" | PHP_INI_ALL | |
mongo.allow_empty_keys | 0 | PHP_INI_ALL | |
mongo.allow_persistent | 1 | PHP_INI_ALL | Removed in 1.2.0 |
mongo.chunk_size | 262144 | PHP_INI_ALL | |
mongo.cmd | "$" | PHP_INI_ALL | |
mongo.default_host | "localhost" | PHP_INI_ALL | |
mongo.default_port | 27017 | PHP_INI_ALL | |
mongo.is_master_interval | 15 | PHP_INI_ALL | Added in 1.2.10, before 1.3.0 the default value was 60. |
mongo.long_as_object | 0 | PHP_INI_ALL | |
mongo.native_long | 1 | PHP_INI_ALL | Before 1.5.0, the default value was 0. |
mongo.ping_interval | 5 | PHP_INI_ALL | Added in 1.2.10 |
mongo.utf8 | 1 | PHP_INI_ALL | |
mysql.allow_local_infile | "1" | PHP_INI_SYSTEM | |
mysql.allow_persistent | "1" | PHP_INI_SYSTEM | |
mysql.max_persistent | "-1" | PHP_INI_SYSTEM | |
mysql.max_links | "-1" | PHP_INI_SYSTEM | |
mysql.trace_mode | "0" | PHP_INI_ALL | 自 PHP 4.3.0 起可用 |
mysql.default_port | NULL | PHP_INI_ALL | |
mysql.default_socket | NULL | PHP_INI_ALL | 自 PHP 4.0.1 起可用 |
mysql.default_host | NULL | PHP_INI_ALL | |
mysql.default_user | NULL | PHP_INI_ALL | |
mysql.default_password | NULL | PHP_INI_ALL | |
mysql.connect_timeout | "60" | PHP_INI_ALL | 自 PHP 4.3.0 起可用。在 PHP <= 4.3.2 时为 PHP_INI_SYSTEM |
mysqli.allow_local_infile | "0" | PHP_INI_SYSTEM | 自PHP 5.2.4起可用。在 PHP 7.2.16 和 7.3.3 之前,默认值为 "1" |
mysqli.local_infile_directory | PHP_INI_SYSTEM | ||
mysqli.allow_persistent | "1" | PHP_INI_SYSTEM | 自PHP 5.3.0起可用。 |
mysqli.max_persistent | "-1" | PHP_INI_SYSTEM | 自PHP 5.3.0起可用。 |
mysqli.max_links | "-1" | PHP_INI_SYSTEM | |
mysqli.default_port | "3306" | PHP_INI_ALL | |
mysqli.default_socket | NULL | PHP_INI_ALL | |
mysqli.default_host | NULL | PHP_INI_ALL | |
mysqli.default_user | NULL | PHP_INI_ALL | 自PHP 5.0.0起可用。 |
mysqli.default_pw | NULL | PHP_INI_ALL | |
mysqli.reconnect | "0" | PHP_INI_SYSTEM | |
mysqli.rollback_on_cached_plink | TRUE | PHP_INI_SYSTEM | 自 PHP 5.6.0 起可用。 |
mysqlnd.collect_statistics | "1" | PHP_INI_SYSTEM | |
mysqlnd.collect_memory_statistics | "0" | PHP_INI_SYSTEM | |
mysqlnd.debug | "" | PHP_INI_SYSTEM | |
mysqlnd.log_mask | 0 | PHP_INI_ALL | |
mysqlnd.mempool_default_size | 16000 | PHP_INI_ALL | |
mysqlnd.net_read_timeout | "86400" | PHP_INI_ALL |
Before PHP 7.2.0 the default value was "31536000"
and the changeability was PHP_INI_SYSTEM
|
mysqlnd.net_cmd_buffer_size | "4096" | PHP_INI_SYSTEM | |
mysqlnd.net_read_buffer_size | "32768" | PHP_INI_SYSTEM | |
mysqlnd.sha256_server_public_key | "" | PHP_INI_PERDIR | |
mysqlnd.trace_alloc | "" | PHP_INI_SYSTEM | |
mysqlnd.fetch_data_copy | 0 | PHP_INI_ALL | |
mysqlnd_memcache.enable | 1 | PHP_INI_SYSTEM |
Available since 1.0.0 |
mysqlnd_ms.enable | 0 | PHP_INI_SYSTEM | |
mysqlnd_ms.force_config_usage | 0 | PHP_INI_SYSTEM | |
mysqlnd_ms.ini_file | "" | PHP_INI_SYSTEM | |
mysqlnd_ms.config_file | "" | PHP_INI_SYSTEM | |
mysqlnd_ms.collect_statistics | 0 | PHP_INI_SYSTEM | |
mysqlnd_ms.multi_master | 0 | PHP_INI_SYSTEM | |
mysqlnd_ms.disable_rw_split | 0 | PHP_INI_SYSTEM | |
mysqlnd_mux.enable | 0 | PHP_INI_SYSTEM | |
mysqlnd_qc.enable_qc | 1 | PHP_INI_SYSTEM | |
mysqlnd_qc.ttl | 30 | PHP_INI_ALL | |
mysqlnd_qc.cache_by_default | 0 | PHP_INI_ALL | |
mysqlnd_qc.cache_no_table | 0 | PHP_INI_ALL | |
mysqlnd_qc.use_request_time | 0 | PHP_INI_ALL | |
mysqlnd_qc.time_statistics | 1 | PHP_INI_ALL | |
mysqlnd_qc.collect_statistics | 0 | PHP_INI_ALL | |
mysqlnd_qc.collect_statistics_log_file | /tmp/mysqlnd_qc.stats | PHP_INI_SYSTEM | |
mysqlnd_qc.collect_query_trace | 0 | PHP_INI_SYSTEM | |
mysqlnd_qc.query_trace_bt_depth | 3 | PHP_INI_SYSTEM | |
mysqlnd_qc.collect_normalized_query_trace | 0 | PHP_INI_SYSTEM | |
mysqlnd_qc.ignore_sql_comments | 1 | PHP_INI_ALL | |
mysqlnd_qc.slam_defense | 0 | PHP_INI_SYSTEM | |
mysqlnd_qc.slam_defense_ttl | 30 | PHP_INI_SYSTEM | |
mysqlnd_qc.std_data_copy | 0 | PHP_INI_SYSTEM | |
mysqlnd_qc.apc_prefix | qc_ | PHP_INI_ALL | |
mysqlnd_qc.memc_server | 127.0.0.1 | PHP_INI_ALL | |
mysqlnd_qc.memc_port | 11211 | PHP_INI_ALL | |
mysqlnd_qc.sqlite_data_file | :memory: | PHP_INI_ALL | |
mysqlnd_uh.enable | 1 | PHP_INI_SYSTEM | |
mysqlnd_uh.report_wrong_types | 1 | PHP_INI_ALL | |
oci8.connection_class | "" | PHP_INI_ALL | Available since PECL OCI8 1.3. |
oci8.default_prefetch | "100" | PHP_INI_SYSTEM | Available since PECL OCI8 1.1. |
oci8.events | Off | PHP_INI_SYSTEM | Available since PECL OCI8 1.3. |
oci8.max_persistent | "-1" | PHP_INI_SYSTEM | Available since PECL OCI8 1.1. |
oci8.old_oci_close_semantics | Off | PHP_INI_SYSTEM | Available since PECL OCI8 1.1. |
oci8.persistent_timeout | "-1" | PHP_INI_SYSTEM | Available since PECL OCI8 1.1. |
oci8.ping_interval | "60" | PHP_INI_SYSTEM | Available since PECL OCI8 1.1. |
oci8.privileged_connect | Off | PHP_INI_SYSTEM | Available since PECL OCI8 1.1. |
oci8.statement_cache_size | "20" | PHP_INI_SYSTEM | Available since PECL OCI8 1.1. |
odbc.default_db * | NULL | PHP_INI_ALL | |
odbc.default_user * | NULL | PHP_INI_ALL | |
odbc.default_pw * | NULL | PHP_INI_ALL | |
odbc.allow_persistent | "1" | PHP_INI_SYSTEM | |
odbc.check_persistent | "1" | PHP_INI_SYSTEM | |
odbc.max_persistent | "-1" | PHP_INI_SYSTEM | |
odbc.max_links | "-1" | PHP_INI_SYSTEM | |
odbc.defaultlrl | "4096" | PHP_INI_ALL | |
odbc.defaultbinmode | "1" | PHP_INI_ALL | |
odbc.default_cursortype | "3" | PHP_INI_ALL | Available as of PHP 5.3.0 |
opcache.enable | "1" | PHP_INI_ALL | |
opcache.enable_cli | "0" | PHP_INI_SYSTEM | 在 PHP 7.1.2 至 7.1.6 (含)的版本,默认值是"1" |
opcache.memory_consumption | "128" | PHP_INI_SYSTEM | 在 PHP 7.0.0 之前,默认值是 "64" |
opcache.interned_strings_buffer | "8" | PHP_INI_SYSTEM | 在 PHP 7.0.0 之前,默认值是 "4" |
opcache.max_accelerated_files | "10000" | PHP_INI_SYSTEM | 在 PHP 7.0.0 之前,默认值是 "2000" |
opcache.max_wasted_percentage | "5" | PHP_INI_SYSTEM | |
opcache.use_cwd | "1" | PHP_INI_SYSTEM | |
opcache.validate_timestamps | "1" | PHP_INI_ALL | |
opcache.revalidate_freq | "2" | PHP_INI_ALL | |
opcache.revalidate_path | "0" | PHP_INI_ALL | |
opcache.save_comments | "1" | PHP_INI_SYSTEM | |
opcache.load_comments | "1" | PHP_INI_ALL | 从 PHP 7.0.0 开始被移除 |
opcache.fast_shutdown | "0" | PHP_INI_SYSTEM | 从 PHP 7.2.0 开始被移除 |
opcache.enable_file_override | "0" | PHP_INI_SYSTEM | |
opcache.optimization_level | "0x7FFFBFFF" | PHP_INI_SYSTEM | 从 PHP 5.6.18 开始,默认值从 0xFFFFFFFF 修改为 0x7FFFBFFF |
opcache.inherited_hack | "1" | PHP_INI_SYSTEM | 自 PHP 7.3.0 被移除 |
opcache.dups_fix | "0" | PHP_INI_ALL | |
opcache.blacklist_filename | "" | PHP_INI_SYSTEM | |
opcache.max_file_size | "0" | PHP_INI_SYSTEM | |
opcache.consistency_checks | "0" | PHP_INI_ALL | |
opcache.force_restart_timeout | "180" | PHP_INI_SYSTEM | |
opcache.error_log | "" | PHP_INI_SYSTEM | |
opcache.log_verbosity_level | "1" | PHP_INI_SYSTEM | |
opcache.preferred_memory_model | "" | PHP_INI_SYSTEM | |
opcache.protect_memory | "0" | PHP_INI_SYSTEM | |
opcache.mmap_base | null |
PHP_INI_SYSTEM | |
opcache.restrict_api | "" | PHP_INI_SYSTEM | |
opcache.file_update_protection | "2" | PHP_INI_ALL | |
opcache.huge_code_pages | "0" | PHP_INI_SYSTEM | |
opcache.lockfile_path | "/tmp" | PHP_INI_SYSTEM | |
opcache.opt_debug_level | "0" | PHP_INI_SYSTEM | |
opcache.file_cache | NULL | PHP_INI_SYSTEM | 从 PHP 7.0.0 开始支持 |
opcache.file_cache_only | "0" | PHP_INI_SYSTEM | 从 PHP 7.0.0 开始支持 |
opcache.file_cache_consistency_checks | "1" | PHP_INI_SYSTEM | 从 PHP 7.0.0 开始支持 |
opcache.file_cache_fallback | "1" | PHP_INI_SYSTEM | 从 PHP 7.0.0 开始支持,仅适用于 Windows 平台 |
opcache.validate_permission | "0" | PHP_INI_SYSTEM | 从 PHP 7.0.14 开始支持 |
opcache.validate_root | "0" | PHP_INI_SYSTEM | 从 PHP 7.0.14 开始支持 |
opcache.preload | "" | PHP_INI_SYSTEM | 从 PHP 7.4.0 开始支持 |
opcache.preload_user | "" | PHP_INI_SYSTEM | 从 PHP 7.4.0 开始支持 |
open_basedir | NULL | PHP_INI_ALL | 在 PHP < 5.2.3 时是 PHP_INI_SYSTEM。 |
output_buffering | "0" | PHP_INI_PERDIR | |
output_handler | NULL | PHP_INI_PERDIR | |
pcre.backtrack_limit | "100000" | PHP_INI_ALL | php 5.2.0 起可用。 |
pcre.recursion_limit | "100000" | PHP_INI_ALL | php 5.2.0 起可用。 |
pcre.jit | "1" | PHP_INI_ALL | PHP 7.0.0 起可用 |
pdo.dsn.* | 仅 php.ini | ||
pdo_odbc.connection_pooling | "strict" | PHP_INI_ALL | |
pdo_odbc.db2_instance_name | NULL | PHP_INI_SYSTEM | 本过时特性将肯定会在未来被移除。 |
pgsql.allow_persistent | "1" | PHP_INI_SYSTEM | |
pgsql.max_persistent | "-1" | PHP_INI_SYSTEM | |
pgsql.max_links | "-1" | PHP_INI_SYSTEM | |
pgsql.auto_reset_persistent | "0" | PHP_INI_SYSTEM | 从 PHP 4.2.0 起开始存在 |
pgsql.ignore_notice | "0" | PHP_INI_ALL | 从 PHP 4.3.0 起开始存在 |
pgsql.log_notice | "0" | PHP_INI_ALL | 从 PHP 4.3.0 起开始存在 |
phar.readonly | "1" | PHP_INI_ALL | |
phar.require_hash | "1" | PHP_INI_ALL | |
phar.cache_list | "" | PHP_INI_SYSTEM | |
post_max_size | "8M" | PHP_INI_PERDIR | |
precision | "14" | PHP_INI_ALL | |
realpath_cache_size | "16K" | PHP_INI_SYSTEM | |
realpath_cache_ttl | "120" | PHP_INI_SYSTEM | |
register_argc_argv | "1" | PHP_INI_PERDIR | |
report_memleaks | "1" | PHP_INI_ALL | |
report_zend_debug | "1" | PHP_INI_ALL | |
request_order | "" | PHP_INI_PERDIR | |
runkit.superglobal | "" | PHP_INI_PERDIR | |
runkit.internal_override | "0" | PHP_INI_SYSTEM | |
sendmail_from | NULL | PHP_INI_ALL | |
sendmail_path | "/usr/sbin/sendmail -t -i" | PHP_INI_SYSTEM | |
serialize_precision | "-1" | PHP_INI_ALL | PHP 7.1.0 之前,默认值为 17。 |
session.save_path | "" | PHP_INI_ALL | |
session.name | "PHPSESSID" | PHP_INI_ALL | |
session.save_handler | "files" | PHP_INI_ALL | |
session.auto_start | "0" | PHP_INI_PERDIR | |
session.gc_probability | "1" | PHP_INI_ALL | |
session.gc_divisor | "100" | PHP_INI_ALL | |
session.gc_maxlifetime | "1440" | PHP_INI_ALL | |
session.serialize_handler | "php" | PHP_INI_ALL | |
session.cookie_lifetime | "0" | PHP_INI_ALL | |
session.cookie_path | "/" | PHP_INI_ALL | |
session.cookie_domain | "" | PHP_INI_ALL | |
session.cookie_secure | "" | PHP_INI_ALL | |
session.cookie_httponly | "" | PHP_INI_ALL | 自 PHP 5.2.0 起有效 |
session.cookie_samesite | "" | PHP_INI_ALL | 自 PHP 7.3.0 起有效 |
session.use_strict_mode | "0" | PHP_INI_ALL | 自 PHP 5.5.2 起有效 |
session.use_cookies | "1" | PHP_INI_ALL | |
session.use_only_cookies | "1" | PHP_INI_ALL | |
session.referer_check | "" | PHP_INI_ALL | |
session.cache_limiter | "nocache" | PHP_INI_ALL | |
session.cache_expire | "180" | PHP_INI_ALL | |
session.use_trans_sid | "0" | PHP_INI_ALL | |
session.trans_sid_tags | "a=href,area=href,frame=src,form=" | PHP_INI_ALL | 自 PHP 7.1.0 起有效。 |
session.trans_sid_hosts | $_SERVER['HTTP_HOST'] |
PHP_INI_ALL | 自 PHP 7.1.0 起有效。 |
session.sid_length | "32" | PHP_INI_ALL | 自 PHP 7.1.0 起有效。 |
session.sid_bits_per_character | "4" | PHP_INI_ALL | 自 PHP 7.1.0 起有效。 |
session.upload_progress.enabled | "1" | PHP_INI_PERDIR | |
session.upload_progress.cleanup | "1" | PHP_INI_PERDIR | |
session.upload_progress.prefix | "upload_progress_" | PHP_INI_PERDIR | |
session.upload_progress.name | "PHP_SESSION_UPLOAD_PROGRESS" | PHP_INI_PERDIR | |
session.upload_progress.freq | "1%" | PHP_INI_PERDIR | |
session.upload_progress.min_freq | "1" | PHP_INI_PERDIR | |
session.lazy_write | "1" | PHP_INI_ALL | |
session.hash_function | "0" | PHP_INI_ALL | 自 PHP 7.1.0 起移除。 |
session.hash_bits_per_character | "4" | PHP_INI_ALL | 自 PHP 7.1.0 起移除。 |
session.entropy_file | "" | PHP_INI_ALL | 自 PHP 7.1.0 起移除。 |
session.entropy_length | "0" | PHP_INI_ALL | 自 PHP 7.1.0 起移除。 |
short_open_tag | "1" | PHP_INI_PERDIR | |
SMTP | "localhost" | PHP_INI_ALL | |
smtp_port | "25" | PHP_INI_ALL | |
soap.wsdl_cache_enabled | 1 | PHP_INI_ALL | |
soap.wsdl_cache_dir | /tmp | PHP_INI_ALL | |
soap.wsdl_cache_ttl | 86400 | PHP_INI_ALL | |
soap.wsdl_cache | 1 | PHP_INI_ALL | |
soap.wsdl_cache_limit | 5 | PHP_INI_ALL | |
sql.safe_mode | "0" | PHP_INI_SYSTEM | |
sqlite3.extension_dir | "" | PHP_INI_SYSTEM | PHP 5.3.11 起可用 |
sqlite3.defensive | 1 | PHP_INI_SYSTEM | PHP 7.2.17 和 7.3.4 起可用,libsqlite ≥ 3.26.0。 |
syslog.facility | "LOG_USER" | PHP_INI_SYSTEM | 从 PHP 7.3.0 起可用。 |
syslog.filter | "no-ctrl" | PHP_INI_ALL | 从 PHP 7.3.0 起可用。 |
syslog.ident | "php" | PHP_INI_SYSTEM | 从 PHP 7.3.0 起可用。 |
sys_temp_dir | "" | PHP_INI_SYSTEM | |
sysvshm.init_mem | 10000 | PHP_INI_SYSTEM | |
tidy.default_config | "" | PHP_INI_SYSTEM | |
tidy.clean_output | "0" | PHP_INI_USER | |
track_errors | "0" | PHP_INI_ALL | 自 PHP 7.2.0 起废弃。 |
unserialize_callback_func | NULL | PHP_INI_ALL | |
uploadprogress.file.filename_template | "/tmp/upt_%s.txt" | PHP_INI_ALL | |
upload_max_filesize | "2M" | PHP_INI_PERDIR | |
max_file_uploads | 20 | PHP_INI_SYSTEM | |
upload_tmp_dir | NULL | PHP_INI_SYSTEM | |
url_rewriter.tags | "a=href,area=href,frame=src,form=,fieldset=" | PHP_INI_ALL | |
user_agent | NULL | PHP_INI_ALL | |
user_dir | NULL | PHP_INI_SYSTEM | |
user_ini.cache_ttl | "300" | PHP_INI_SYSTEM | |
user_ini.filename | ".user.ini" | PHP_INI_SYSTEM | |
uopz.disable | "0" | PHP_INI_SYSTEM | Available as of uopz 5.0.2 |
uopz.exit | "0" | PHP_INI_SYSTEM | Available as of uopz 6.0.1 |
uopz.overloads | "1" | PHP_INI_SYSTEM | Available as of uopz 2.0.2. Removed as of uopz 5.0.0. |
variables_order | "EGPCS" | PHP_INI_PERDIR | |
vld.active | "0" | PHP_INI_SYSTEM | |
vld.execute | "1" | PHP_INI_SYSTEM | 从 vld 0.8.0 起可用。 |
vld.skip_append | "0" | PHP_INI_SYSTEM | 从 vld 0.8.0 起可用。 |
vld.skip_prepend | "0" | PHP_INI_SYSTEM | 从 vld 0.8.0 起可用。 |
windows.show_crt_warning | "0" | PHP_INI_ALL | |
xbithack | "0" | PHP_INI_ALL | |
xmlrpc_errors | "0" | PHP_INI_SYSTEM | |
xmlrpc_error_number | "0" | PHP_INI_ALL | |
yaz.keepalive | "120" | PHP_INI_ALL | |
yaz.log_mask | NULL | PHP_INI_ALL | 从 yaz 1.0.3 起可用。 |
zend.assertions | "1" | PHP_INI_ALL | |
zend.detect_unicode | "1" | PHP_INI_ALL | |
zend.enable_gc | "1" | PHP_INI_ALL | |
zend.multibyte | "0" | PHP_INI_PERDIR | |
zend.script_encoding | NULL | PHP_INI_ALL | |
zend.signal_check | "0" | PHP_INI_SYSTEM | |
zend_extension | NULL | php.ini only | |
zlib.output_compression | "0" | PHP_INI_ALL | |
zlib.output_compression_level | "-1" | PHP_INI_ALL | |
zlib.output_handler | "" | PHP_INI_ALL |