php8.5
Home/ Manual/ appendices/ List of Ini directives

List of Ini directives

This list includes the Ini directives that can be used to configure PHP.

This list includes the Ini directives that can be used to configure PHP.

The "Changeable" column shows the modes determining when and where a directive may be set. See the Changeable mode values section for their definitions.

NameDefaultChangeableChangelog
allow_url_fopen"1"INI_SYSTEM
allow_url_include"0"INI_SYSTEMDeprecated as of PHP 7.4.0.
arg_separator.input"&"INI_PERDIR
arg_separator.output"&"INI_ALL
assert.active"1"INI_ALL
assert.bail"0"INI_ALL
assert.callbacknullINI_ALL
assert.exception"0"INI_ALL
assert.quiet_eval"0"INI_ALLRemoved as of PHP 8.0.0
assert.warning"1"INI_ALL
auto_append_filenullINI_PERDIR
auto_detect_line_endings"0"INI_ALL
auto_globals_jit"1"INI_PERDIR
auto_prepend_filenullINI_PERDIR
browscapnullINI_SYSTEM
cgi.check_shebang_line"1"INI_SYSTEM
cgi.discard_path"0"INI_SYSTEM
cgi.fix_pathinfo"1"INI_SYSTEM
cgi.force_redirect"1"INI_SYSTEM
cgi.nph"0"INI_ALL
cgi.redirect_status_envnullINI_SYSTEM
cgi.rfc2616_headers"0"INI_ALL
child_terminate"0"INI_ALL
default_charset"UTF-8"INI_ALL
input_encoding""INI_ALL
output_encoding""INI_ALL
internal_encoding""INI_ALL
default_mimetype"text/html"INI_ALL
default_socket_timeout"60"INI_ALL
disable_classes""Ini onlyRemoved as of PHP 8.5.0
disable_functions""Ini only
display_errors"1"INI_ALL
display_startup_errors"1"INI_ALLPrior to PHP 8.0.0, the default value was "0".
docref_ext""INI_ALL
docref_root""INI_ALL
doc_rootnullINI_SYSTEM
enable_dl"1"INI_SYSTEMFuture
enable_post_data_reading"On"INI_PERDIR
engine"1"INI_ALL
error_append_stringnullINI_ALL
error_lognullINI_ALL
error_log_mode0o644INI_ALLAvailable as of PHP 8.2.0
error_prepend_stringnullINI_ALL
error_reportingnullINI_ALL
exit_on_timeout""INI_ALL
expose_php"1"Ini only
extensionnullIni only
extension_dir"/path/to/php"INI_SYSTEM
fastcgi.impersonate"0"INI_SYSTEM
fastcgi.logging"1"INI_SYSTEM
file_uploads"1"INI_SYSTEM
from""INI_ALL
hard_timeout"2"INI_SYSTEMAvailable as of PHP 7.1.0.
highlight.comment"#FF8000"INI_ALL
highlight.default"#0000BB"INI_ALL
highlight.html"#000000"INI_ALL
highlight.keyword"#007700"INI_ALL
highlight.string"#DD0000"INI_ALL
html_errors"1"INI_ALL
ignore_repeated_errors"0"INI_ALL
ignore_repeated_source"0"INI_ALL
ignore_user_abort"0"INI_ALL
implicit_flush"0"INI_ALL
include_path".:/path/to/php/pear"INI_ALL
last_modified"0"INI_ALL
log_errors"0"INI_ALL
log_errors_max_len"1024"INI_ALL
mail.add_x_header"0"INI_PERDIR
mail.force_extra_parametersnullINI_SYSTEM
mail.log""INI_PERDIR
max_execution_time"30"INI_ALL
max_input_nesting_level"64"INI_PERDIR
max_input_vars1000INI_PERDIR
max_input_time"-1"INI_PERDIR
memory_limit"128M"INI_ALL
open_basedirnullINI_ALL
output_buffering"0"INI_PERDIR
output_handlernullINI_PERDIR
post_max_size"8M"INI_PERDIR
precision"14"INI_ALL
realpath_cache_size"16K"INI_SYSTEM
realpath_cache_ttl"120"INI_SYSTEM
register_argc_argv"1"INI_PERDIRDeprecated as of PHP 8.5.0
report_memleaks"1"INI_ALLDeprecated as of PHP 8.5.0
report_zend_debug"1"INI_ALL
request_order""INI_PERDIR
sendmail_fromnullINI_ALL
sendmail_path"/usr/sbin/sendmail -t -i"INI_SYSTEM
serialize_precision"-1"INI_ALLPrior to PHP 7.1.0, the default value was 17.
short_open_tag"1"INI_PERDIR
SMTP"localhost"INI_ALL
smtp_port"25"INI_ALL
sql.safe_mode"0"INI_SYSTEMRemoved as of PHP 7.2.0
syslog.facility"LOG_USER"INI_SYSTEMAvailable as of PHP 7.3.0.
syslog.filter"no-ctrl"INI_ALLAvailable as of PHP 7.3.0.
syslog.ident"php"INI_SYSTEMAvailable as of PHP 7.3.0.
sys_temp_dir""INI_SYSTEM
track_errors"0"INI_ALLDeprecated as of PHP 7.2.0, removed as of PHP 8.0.0
uploadprogress.file.filename_template"/tmp/upt_%s.txt"INI_ALL
upload_max_filesize"2M"INI_PERDIR
max_file_uploads20INI_SYSTEM
upload_tmp_dirnullINI_SYSTEM
url_rewriter.hosts""INI_ALLAvailable as of PHP 7.1.0.
url_rewriter.tags"form="INI_ALLPrior to PHP 7.1.0, the default value was "a=href,area=href,frame=src,form=,fieldset=".
user_agentnullINI_ALL
user_dirnullINI_SYSTEM
user_ini.cache_ttl"300"INI_SYSTEM
user_ini.filename".user.ini"INI_SYSTEM
variables_order"EGPCS"INI_PERDIR
windows.show_crt_warning"0"INI_ALL
xbithack"0"INI_ALL
xmlrpc_errors"0"INI_SYSTEM
xmlrpc_error_number"0"INI_ALL
yaz.keepalive"120"INI_ALL
yaz.log_masknullINI_ALLAvailable as of yaz 1.0.3.
zend.assertions"1"INI_ALL
zend.detect_unicode"1"INI_ALL
zend.enable_gc"1"INI_ALL
zend.max_allowed_stack_size"0"INI_SYSTEMAvailable as of PHP 8.3.0
fiber.stack_sizeINI_ALLAvailable as of PHP 8.1.0
zend.multibyte"0"INI_PERDIR
zend.reserved_stack_size"0"INI_SYSTEMAvailable as of PHP 8.3.0
zend.script_encodingnullINI_ALL
zend.signal_check"0"INI_SYSTEM
zend_extensionnullIni only

Source: appendices/ini.list.xml · from the official PHP manual (php/doc-en)