Este listado incluye las directivas de php.ini que se pueden establecer para la configuración de PHP.
La columna "Cambiable" muestra los modos que determinan cuándo y dónde una directiva puede ser establecida. Véase la sección Valores de modo cambiable para sus definiciones.
Nombre | Por defecto | Cambiable | Historial de cambios |
---|---|---|---|
allow_url_fopen | "1" | PHP_INI_SYSTEM | |
allow_url_include | "0" | PHP_INI_SYSTEM | Obsoleta desde desde PHP 5.2.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 | Disponible desde PHP 5.0.0. |
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 | |
default_charset | "UTF-8" | PHP_INI_ALL | Predeterminado a "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 | Disponible desde PHP 4.0.3. |
docref_ext | "" | PHP_INI_ALL | |
docref_root | "" | PHP_INI_ALL | |
doc_root | NULL | PHP_INI_SYSTEM | |
enable_dl | "1" | PHP_INI_SYSTEM | Esta característica obsoleta será eliminada con certeza en el 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 | |
exit_on_timeout | "" | PHP_INI_ALL | Disponible desde PHP 5.3.0 |
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 | Disponible desde PHP 4.2.0. |
fbsql.autocommit | "1" | PHP_INI_SYSTEM | Disponible desde PHP 4.0.6. |
fbsql.batchSize | "1000" | 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 | Disponible desde PHP 5.1.5. |
file_uploads | "1" | PHP_INI_SYSTEM | |
from | "" | PHP_INI_ALL | |
hard_timeout | "2" | PHP_INI_SYSTEM | Available since 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 | Disponible desde ibm_db2 1.6.5. |
ibm_db2.i5_allow_commit | "0" | PHP_INI_SYSTEM | Disponible desde ibm_db2 1.4.9. |
ibm_db2.i5_dbcs_alloc | "0" | PHP_INI_SYSTEM | Disponible desde ibm_db2 1.5.0. |
ibm_db2.instance_name | NULL | PHP_INI_SYSTEM | Disponible desde ibm_db2 1.0.2. |
ibm_db2.i5_ignore_userid | "0" | PHP_INI_SYSTEM | Disponible desde ibm_db2 1.8.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 | |
ingres.allow_persistent | "1" | PHP_INI_SYSTEM | Disponible desde ingres 1.0.0 |
ingres.array_index_start | "1" | PHP_INI_ALL | Disponible desde ingres 1.4.0 |
ingres.auto | "1" | PHP_INI_ALL | Disponible desde ingres 2.0.0. |
ingres.blob_segment_length | "4096" | PHP_INI_ALL | Disponible desde ingres 1.2.0. |
ingres.cursor_mode | "0" | PHP_INI_ALL | Disponible desde ingres 1.1.0. |
ingres.default_database | NULL | PHP_INI_ALL | Disponible desde ingres 1.0.0 |
ingres.default_password | NULL | PHP_INI_ALL | Disponible desde ingres 1.0.0 |
ingres.default_user | NULL | PHP_INI_ALL | Disponible desde ingres 1.0.0 |
ingres.describe | 1 | PHP_INI_ALL | Disponible desde ingres 2.1.0 |
ingres.fetch_buffer_size | 100 | PHP_INI_ALL | Disponible desde ingres 2.1.0 |
ingres.max_links | "-1" | PHP_INI_SYSTEM | Disponible desde ingres 1.0.0 |
ingres.max_persistent | "-1" | PHP_INI_SYSTEM | Disponible desde ingres 1.0.0 |
ingres.reuse_connection | "1" | PHP_INI_ALL | Disponible desde ingres 2.0.0 |
ingres.scrollable | "1" | PHP_INI_ALL | Disponible desde ingres 2.0.0. |
ingres.trace | "0" | PHP_INI_ALL | Disponible desde ingres 2.0.0. |
ingres.trace_connect | "0" | PHP_INI_ALL | Disponible desde ingres 1.2.1. |
ingres.utf8 | "1" | PHP_INI_ALL | Disponible desde ingres 2.0.0. |
last_modified | "0" | PHP_INI_ALL | |
intl.default_locale | "" | PHP_INI_ALL | |
intl.error_level | "0" | PHP_INI_ALL | |
intl.use_exceptions | "0" | PHP_INI_ALL | |
ingres.allow_persistent | "1" | PHP_INI_SYSTEM | Disponible desde ingres 1.0.0 |
ingres.array_index_start | "1" | PHP_INI_ALL | Disponible desde ingres 1.4.0 |
ingres.auto | "1" | PHP_INI_ALL | Disponible desde ingres 2.0.0. |
ingres.blob_segment_length | "4096" | PHP_INI_ALL | Disponible desde ingres 1.2.0. |
ingres.cursor_mode | "0" | PHP_INI_ALL | Disponible desde ingres 1.1.0. |
ingres.default_database | NULL | PHP_INI_ALL | Disponible desde ingres 1.0.0 |
ingres.default_password | NULL | PHP_INI_ALL | Disponible desde ingres 1.0.0 |
ingres.default_user | NULL | PHP_INI_ALL | Disponible desde ingres 1.0.0 |
ingres.describe | 1 | PHP_INI_ALL | Disponible desde ingres 2.1.0 |
ingres.fetch_buffer_size | 100 | PHP_INI_ALL | Disponible desde ingres 2.1.0 |
ingres.max_links | "-1" | PHP_INI_SYSTEM | Disponible desde ingres 1.0.0 |
ingres.max_persistent | "-1" | PHP_INI_SYSTEM | Disponible desde ingres 1.0.0 |
ingres.reuse_connection | "1" | PHP_INI_ALL | Disponible desde ingres 2.0.0 |
ingres.scrollable | "1" | PHP_INI_ALL | Disponible desde ingres 2.0.0. |
ingres.trace | "0" | PHP_INI_ALL | Disponible desde ingres 2.0.0. |
ingres.trace_connect | "0" | PHP_INI_ALL | Disponible desde ingres 1.2.1. |
ingres.utf8 | "1" | PHP_INI_ALL | Disponible desde ingres 2.0.0. |
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 | Disponible desde PHP 5.3.9. |
max_input_time | "-1" | PHP_INI_PERDIR | |
memory_limit | "128M" | PHP_INI_ALL | |
mongo.allow_empty_keys | 0 | PHP_INI_ALL | |
mongo.allow_persistent | 1 | PHP_INI_ALL | Eliminado en 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 | Añadido en 1.2.10, antes de 1.3.0 el valor predeterminado era 60. |
mongo.long_as_object | o | PHP_INI_ALL | |
mongo.native_long | 1 | PHP_INI_ALL | Antes de la versión 1.5.0, el valor predeterminado era 0. |
mongo.ping_interval | 5 | PHP_INI_ALL | Añadido en 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 | Disponible desde PHP 4.3.0. |
mysql.default_port | NULL | PHP_INI_ALL | |
mysql.default_socket | NULL | PHP_INI_ALL | Disponible desde 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 en PHP <= 4.3.2. Disponible desde PHP 4.3.0. |
mysqli.allow_local_infile | "1" | PHP_INI_SYSTEM | Disponible desde PHP 5.2.4. |
mysqli.allow_persistent | "1" | PHP_INI_SYSTEM | Disponible desde PHP 5.3.0. |
mysqli.max_persistent | "-1" | PHP_INI_SYSTEM | Disponible desde PHP 5.3.0. |
mysqli.max_links | "-1" | PHP_INI_SYSTEM | Disponible desde PHP 5.0.0. |
mysqli.default_port | "3306" | PHP_INI_ALL | Disponible desde PHP 5.0.0. |
mysqli.default_socket | NULL | PHP_INI_ALL | Disponible desde PHP 5.0.0. |
mysqli.default_host | NULL | PHP_INI_ALL | Disponible desde PHP 5.0.0. |
mysqli.default_user | NULL | PHP_INI_ALL | Disponible desde PHP 5.0.0. |
mysqli.default_pw | NULL | PHP_INI_ALL | Disponible desde PHP 5.0.0. |
mysqli.reconnect | "0" | PHP_INI_SYSTEM | Disponible desde PHP 4.3.5. |
mysqli.rollback_on_cached_plink | TRUE | PHP_INI_SYSTEM | Disponible desde PHP 5.6.0. |
mysqlnd_memcache.enable | 1 | PHP_INI_SYSTEM |
Disponible desde 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 | |
opcache.enable | "1" | PHP_INI_ALL | |
opcache.enable_cli | "0" | PHP_INI_SYSTEM | Entre PHP 7.1.2 y 7.1.6 inclusive, el valor predetermindao era "1" |
opcache.memory_consumption | "128" | PHP_INI_SYSTEM | Antes de PHP 7.0.0 el valor predeterminado era "64" |
opcache.interned_strings_buffer | "8" | PHP_INI_SYSTEM | Antes de PHP 7.0.0 el valor predeterminado era "4" |
opcache.max_accelerated_files | "10000" | PHP_INI_SYSTEM | Antes de PHP 7.0.0 el valor predeterminado era "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 | Eliminado en PHP 7.0.0. |
opcache.fast_shutdown | "0" | PHP_INI_SYSTEM | Eliminado en PHP 7.2.0. |
opcache.enable_file_override | "0" | PHP_INI_SYSTEM | |
opcache.optimization_level | "0x7FFFBFFF" | PHP_INI_SYSTEM | Cambiado desde 0xFFFFFFFF en PHP 5.6.18 |
opcache.inherited_hack | "1" | PHP_INI_SYSTEM | Eliminado en 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 | Disponible a partir de PHP 7.0.0 |
opcache.file_cache_only | "0" | PHP_INI_SYSTEM | Disponible a partir de PHP 7.0.0 |
opcache.file_cache_consistency_checks | "1" | PHP_INI_SYSTEM | Disponible a partir de PHP 7.0.0 |
opcache.file_cache_fallback | "1" | PHP_INI_SYSTEM | Solo Windows. Disponible a partir de PHP 7.0.0 |
opcache.validate_permission | "0" | PHP_INI_SYSTEM | Disponible a partir de PHP 7.0.14 |
opcache.validate_root | "0" | PHP_INI_SYSTEM | Disponible a partir de PHP 7.0.14 |
opcache.preload | "" | PHP_INI_SYSTEM | Disponible a partir de PHP 7.4.0 |
opcache.preload_user | "" | PHP_INI_SYSTEM | Disponible a partir de PHP 7.4.0 |
open_basedir | NULL | PHP_INI_ALL | |
oracle.allow_persistent | "-1" | PHP_INI_ALL | |
oracle.max_links | "-1" | PHP_INI_ALL | |
oracle.max_persistent | "-1" | PHP_INI_ALL | |
output_buffering | "0" | PHP_INI_PERDIR | |
output_handler | NULL | PHP_INI_PERDIR | |
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 | |
sendmail_from | NULL | PHP_INI_ALL | |
sendmail_path | "/usr/sbin/sendmail -t -i" | PHP_INI_SYSTEM | |
serialize_precision | "-1" | PHP_INI_ALL | Hasta PHP 7.1.0, el valor predeterminado era 17. |
short_open_tag | "1" | PHP_INI_PERDIR | |
SMTP | "localhost" | PHP_INI_ALL | |
smtp_port | "25" | PHP_INI_ALL | |
sql.safe_mode | "0" | PHP_INI_SYSTEM | |
syslog.facility | "LOG_USER" | PHP_INI_SYSTEM | Disponible desde PHP 7.3.0. |
syslog.filter | "no-ctrl" | PHP_INI_ALL | Disponible desde PHP 7.3.0. |
syslog.ident | "php" | PHP_INI_SYSTEM | Disponible desde PHP 7.3.0. |
sys_temp_dir | "" | PHP_INI_SYSTEM | |
track_errors | "0" | PHP_INI_ALL | Obsoleta desde PHP 7.2.0. |
unserialize_callback_func | NULL | PHP_INI_ALL | Disponible desde PHP 4.2.0. |
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 | Disponible desde vld 0.8.0. |
vld.skip_append | "0" | PHP_INI_SYSTEM | Disponible desde vld 0.8.0. |
vld.skip_prepend | "0" | PHP_INI_SYSTEM | Disponible 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 | Disponible 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 | Solamente en php.ini |