PHP 8.1.0 RC 2 available for testing

Lista de diretivas do php.ini

Esta lista inclui as diretivas do php.ini que você pode configurar na sua instalação PHP.

A coluna "Modificável" 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
Nome Padrão Modificável Changelog
allow_url_fopen "1" PHP_INI_SYSTEM  
allow_url_include "0" PHP_INI_SYSTEM Obsoleto desde 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  
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_server.color "0" PHP_INI_ALL  
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  
dba.default_handler DBA_DEFAULT PHP_INI_ALL
default_charset "UTF-8" PHP_INI_ALL Padrão para "UTF-8".
default_mimetype "text/html" PHP_INI_ALL  
default_socket_timeout "60" PHP_INI_ALL  
disable_classes "" Somente no php.ini  
disable_functions "" Somente no php.ini  
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 Esta funcionalidade obsoleta será certamente removida no futuro.
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 Disponível desde PHP 5.3.0
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" Somente no php.ini  
extension NULL Somente no php.ini  
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  
from "" PHP_INI_ALL  
geoip.custom_directory "" PHP_INI_ALL
hard_timeout "2" PHP_INI_SYSTEM Disponível desde 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  
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 Deprecated in PHP 5.6.0.
iconv.output_encoding "" PHP_INI_ALL Deprecated in PHP 5.6.0.
iconv.internal_encoding "" PHP_INI_ALL Deprecated in 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
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 Somente no php.ini  
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  
mbstring.detect_order NULL PHP_INI_ALL  
mbstring.http_input "pass" PHP_INI_ALL Deprecated
mbstring.http_output "pass" PHP_INI_ALL Deprecated
mbstring.internal_encoding NULL PHP_INI_ALL Deprecated
mbstring.substitute_character NULL PHP_INI_ALL  
mbstring.func_overload "0" PHP_INI_SYSTEM 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  
mbstring.strict_detection "0" PHP_INI_ALL  
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.
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  
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 Disponível desde o PHP 4.3.0.
mysql.default_port NULL PHP_INI_ALL  
mysql.default_socket NULL PHP_INI_ALL Disponível desde o 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_INI_SYSTEM no PHP <= 4.3.2. Disponível desde o PHP 4.3.0.
mysqli.allow_local_infile "0" PHP_INI_SYSTEM Disponível desde o PHP 5.2.4. Antes do PHP 7.2.16 e 7.3.3 o padrão era "1".
mysqli.local_infile_directory   PHP_INI_SYSTEM  
mysqli.allow_persistent "1" PHP_INI_SYSTEM Disponível desde o PHP 5.3.0.
mysqli.max_persistent "-1" PHP_INI_SYSTEM Disponível desde o 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  
mysqli.default_pw NULL PHP_INI_ALL  
mysqli.reconnect "0" PHP_INI_SYSTEM  
mysqli.rollback_on_cached_plink TRUE PHP_INI_SYSTEM Disponível desde o 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  
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.
opcache.enable "1" PHP_INI_ALL  
opcache.enable_cli "0" PHP_INI_SYSTEM Between PHP 7.1.2 and 7.1.6 inclusive, the default was "1"
opcache.memory_consumption "128" PHP_INI_SYSTEM  
opcache.interned_strings_buffer "8" PHP_INI_SYSTEM  
opcache.max_accelerated_files "10000" PHP_INI_SYSTEM  
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.fast_shutdown "0" PHP_INI_SYSTEM Removed in PHP 7.2.0
opcache.enable_file_override "0" PHP_INI_SYSTEM  
opcache.optimization_level "0x7FFEBFFF" PHP_INI_SYSTEM Changed from 0x7FFFBFFF in PHP 7.3.0
opcache.inherited_hack "1" PHP_INI_SYSTEM Removed in 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 Available as of PHP 7.1.0
opcache.file_cache NULL PHP_INI_SYSTEM  
opcache.file_cache_only "0" PHP_INI_SYSTEM  
opcache.file_cache_consistency_checks "1" PHP_INI_SYSTEM  
opcache.file_cache_fallback "1" PHP_INI_SYSTEM Windows only.
opcache.validate_permission "0" PHP_INI_SYSTEM Available as of PHP 7.0.14
opcache.validate_root "0" PHP_INI_SYSTEM Available as of PHP 7.0.14
opcache.preload "" PHP_INI_SYSTEM Available as of PHP 7.4.0
opcache.preload_user "" PHP_INI_SYSTEM Available as of PHP 7.4.0
opcache.cache_id "" PHP_INI_SYSTEM Windows only. Available as of PHP 7.4.0
opcache.jit "tracing" PHP_INI_ALL Available as of PHP 8.0.0
opcache.jit_buffer_size "0" PHP_INI_SYSTEM Available as of PHP 8.0.0
opcache.jit_debug "0" PHP_INI_ALL Available as of PHP 8.0.0
opcache.jit_bisect_limit "0" PHP_INI_ALL Available as of PHP 8.0.0
opcache.jit_prof_threshold "0.005" PHP_INI_ALL Available as of PHP 8.0.0
opcache.jit_max_root_traces "1024" PHP_INI_SYSTEM Available as of PHP 8.0.0
opcache.jit_max_side_traces "128" PHP_INI_SYSTEM Available as of PHP 8.0.0
opcache.jit_max_exit_counters "8192" PHP_INI_SYSTEM Available as of PHP 8.0.0
opcache.jit_hot_loop "64" PHP_INI_SYSTEM Available as of PHP 8.0.0
opcache.jit_hot_func "127" PHP_INI_SYSTEM Available as of PHP 8.0.0
opcache.jit_hot_return "8" PHP_INI_SYSTEM Available as of PHP 8.0.0
opcache.jit_hot_side_exit "8" PHP_INI_SYSTEM Available as of PHP 8.0.0
opcache.jit_blacklist_root_trace "16" PHP_INI_ALL Available as of PHP 8.0.0
opcache.jit_blacklist_side_trace "8" PHP_INI_ALL Available as of PHP 8.0.0
opcache.jit_max_loop_unrolls "8" PHP_INI_ALL Available as of PHP 8.0.0
opcache.jit_max_recursive_calls "2" PHP_INI_ALL Available as of PHP 8.0.0
opcache.jit_max_recursive_returns "2" PHP_INI_ALL Available as of PHP 8.0.0
opcache.jit_max_polymorphic_calls "2" PHP_INI_ALL Available as of PHP 8.0.0
open_basedir NULL PHP_INI_ALL  
output_buffering "0" PHP_INI_PERDIR  
output_handler NULL PHP_INI_PERDIR  
pdo_odbc.connection_pooling "strict" PHP_INI_ALL  
pdo_odbc.db2_instance_name NULL PHP_INI_SYSTEM Esta funcionalidade obsoleta será certamente removida no futuro.
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 Antes do PHP 7.1.0, o valor padrão era 17.
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  
sqlite3.defensive 1 PHP_INI_SYSTEM Available as of PHP 7.2.17 and 7.3.4 for libsqlite ≥ 3.26.0.
syslog.facility "LOG_USER" PHP_INI_SYSTEM Disponível desde o PHP 7.3.0.
syslog.filter "no-ctrl" PHP_INI_ALL Disponível desde o PHP 7.3.0.
syslog.ident "php" PHP_INI_SYSTEM Disponível desde o 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 PHP_INI_PERDIR antes do PHP 5.4.0
track_errors "0" PHP_INI_ALL Obsoleto desde 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 Disponível desde vld 0.8.0.
vld.skip_append "0" PHP_INI_SYSTEM Disponível desde vld 0.8.0.
vld.skip_prepend "0" PHP_INI_SYSTEM Disponível desde 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 Disponível desde 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 Somente no php.ini  
zlib.output_compression "0" PHP_INI_ALL  
zlib.output_compression_level "-1" PHP_INI_ALL  
zlib.output_handler "" PHP_INI_ALL  

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top