Lista de diretivas do &php.ini;
Esta lista inclui as diretivas do &php.ini; que você pode usar para configurar o PHP.
A coluna "&Changeable;" mostra os modos que determinam quando e onde uma diretiva pode ser definida.
Veja a seção valores modificáveis para as suas definições.
Opções de configuração&Name;&Default;&Changeable;&Changelog;allow_url_fopen"1"INI_SYSTEMallow_url_include"0"INI_SYSTEMDescontinuado a partir do PHP 7.4.0.arg_separator.input"&"INI_PERDIRarg_separator.output"&"INI_ALLassert.active"1"INI_ALLassert.bail"0"INI_ALLassert.callback&null;INI_ALLassert.exception"0"INI_ALLassert.quiet_eval"0"INI_ALLRemovido a partir do PHP 8.0.0assert.warning"1"INI_ALLauto_append_file&null;INI_PERDIRauto_detect_line_endings"0"INI_ALLauto_globals_jit"1"INI_PERDIRauto_prepend_file&null;INI_PERDIRbrowscap&null;INI_SYSTEMcgi.check_shebang_line"1"INI_SYSTEMcgi.discard_path"0"INI_SYSTEMcgi.fix_pathinfo"1"INI_SYSTEMcgi.force_redirect"1"INI_SYSTEMcgi.nph"0"INI_ALLcgi.redirect_status_env&null;INI_SYSTEMcgi.rfc2616_headers"0"INI_ALLchild_terminate"0"INI_ALLdefault_charset"UTF-8"INI_ALLinput_encoding""INI_ALLoutput_encoding""INI_ALLinternal_encoding""INI_ALLdefault_mimetype"text/html"INI_ALLdefault_socket_timeout"60"INI_ALLdisable_classes""Somente no &php.ini;disable_functions""Somente no &php.ini;display_errors"1"INI_ALLdisplay_startup_errors"1"INI_ALL
Anteriormente ao PHP 8.0.0, o valor padrão era "0".
docref_ext""INI_ALLdocref_root""INI_ALLdoc_root&null;INI_SYSTEMenable_dl"1"INI_SYSTEM&removed.php.future;enable_post_data_reading"On"INI_PERDIRengine"1"INI_ALLerror_append_string&null;INI_ALLerror_log&null;INI_ALLerror_log_mode0o644INI_ALLDisponível desde o PHP 8.2.0error_prepend_string&null;INI_ALLerror_reporting&null;INI_ALLexit_on_timeout""INI_ALLexpose_php"1"Somente no &php.ini;extension&null;Somente no &php.ini;extension_dir"/path/to/php"INI_SYSTEMfastcgi.impersonate"0"INI_SYSTEMfastcgi.logging"1"INI_SYSTEMfile_uploads"1"INI_SYSTEMfrom""INI_ALLhard_timeout"2"INI_SYSTEMDisponível desde o PHP 7.1.0.highlight.comment"#FF8000"INI_ALLhighlight.default"#0000BB"INI_ALLhighlight.html"#000000"INI_ALLhighlight.keyword"#007700"INI_ALLhighlight.string"#DD0000"INI_ALLhtml_errors"1"INI_ALLignore_repeated_errors"0"INI_ALLignore_repeated_source"0"INI_ALLignore_user_abort"0"INI_ALLimplicit_flush"0"INI_ALLinclude_path".:/path/to/php/pear"INI_ALLlast_modified"0"INI_ALLlog_errors"0"INI_ALLlog_errors_max_len"1024"INI_ALLmail.add_x_header"0"INI_PERDIRmail.force_extra_parameters&null;INI_SYSTEMmail.log""INI_PERDIRmax_execution_time"30"INI_ALLmax_input_nesting_level"64"INI_PERDIRmax_input_vars1000INI_PERDIRmax_input_time"-1"INI_PERDIRmemory_limit"128M"INI_ALLopen_basedir&null;INI_ALLoutput_buffering"0"INI_PERDIRoutput_handler&null;INI_PERDIRpost_max_size"8M"INI_PERDIRprecision"14"INI_ALLrealpath_cache_size"16K"INI_SYSTEMrealpath_cache_ttl"120"INI_SYSTEMregister_argc_argv"1"INI_PERDIRreport_memleaks"1"INI_ALLreport_zend_debug"1"INI_ALLrequest_order""INI_PERDIRsendmail_from&null;INI_ALLsendmail_path"/usr/sbin/sendmail -t -i"INI_SYSTEMserialize_precision"-1"INI_ALL
Antes do PHP 7.1.0, o valor padrão era 17.
short_open_tag"1"INI_PERDIRSMTP"localhost"INI_ALLsmtp_port"25"INI_ALLsql.safe_mode"0"INI_SYSTEMRemovido desde o PHP 7.2.0syslog.facility"LOG_USER"INI_SYSTEMDisponível desde o PHP 7.3.0.syslog.filter"no-ctrl"INI_ALLDisponível desde o PHP 7.3.0.syslog.ident"php"INI_SYSTEMDisponível desde o PHP 7.3.0.sys_temp_dir""INI_SYSTEMtrack_errors"0"INI_ALLDescontinuado a partir do PHP 7.2.0, removido no PHP 8.0.0.uploadprogress.file.filename_template"/tmp/upt_%s.txt"INI_ALLupload_max_filesize"2M"INI_PERDIRmax_file_uploads20INI_SYSTEMupload_tmp_dir&null;INI_SYSTEMurl_rewriter.hosts""INI_ALLDisponível a partir do PHP 7.1.0.url_rewriter.tags"form="INI_ALL
Antes do PHP 7.1.0, o valor padrão era
"a=href,area=href,frame=src,form=,fieldset=".
user_agent&null;INI_ALLuser_dir&null;INI_SYSTEMuser_ini.cache_ttl"300"INI_SYSTEMuser_ini.filename".user.ini"INI_SYSTEMvariables_order"EGPCS"INI_PERDIRwindows.show_crt_warning"0"INI_ALLxbithack"0"INI_ALLxmlrpc_errors"0"INI_SYSTEMxmlrpc_error_number"0"INI_ALLyaz.keepalive"120"INI_ALLyaz.log_mask&null;INI_ALLDisponível desde yaz 1.0.3.zend.assertions"1"INI_ALLzend.detect_unicode"1"INI_ALLzend.enable_gc"1"INI_ALLzend.max_allowed_stack_size"0"INI_SYSTEMDisponível a partir do PHP 8.3.0fiber.stack_sizeINI_ALLDisponível a partir do PHP 8.1.0zend.multibyte"0"INI_PERDIRzend.reserved_stack_size"0"INI_SYSTEMDisponível a partir do PHP 8.3.0zend.script_encoding&null;INI_ALLzend.signal_check"0"INI_SYSTEMzend_extension&null;Somente no &php.ini;