This list includes the core php.ini directives you can set to configure your PHP setup. Directives handled by extensions are listed and detailed at the extension documentation pages respectively; Information on the session directives for example can be found at the sessions page.
Note:
The defaults listed here are used when php.ini is not loaded; the values for the production and development php.ini may vary.
Language Options
Language and Misc Configuration Optionsshort_open_tag | "1" | PHP_INI_PERDIR | |
precision | "14" | PHP_INI_ALL | |
serialize_precision | "-1" | PHP_INI_ALL | Prior to PHP 7.1.0, the default value was 17. |
disable_functions | "" | PHP_INI_SYSTEM only | |
disable_classes | "" | php.ini only | |
exit_on_timeout | "" | PHP_INI_ALL | |
expose_php | "1" | php.ini only | |
hard_timeout | "2" | PHP_INI_SYSTEM | Available as of PHP 7.1.0. |
zend.exception_ignore_args | "0" | PHP_INI_ALL | Available as of PHP 7.4.0 |
zend.multibyte | "0" | PHP_INI_ALL | |
zend.script_encoding | NULL | PHP_INI_ALL | |
zend.detect_unicode | NULL | PHP_INI_ALL | |
zend.signal_check | "0" | PHP_INI_SYSTEM | |
zend.assertions | "1" | PHP_INI_ALL with restrictions | |
zend.exception_string_param_max_len | "15" | PHP_INI_ALL | Available as of PHP 8.0.0. |
Here's a short explanation of the configuration directives.
short_open_tag
bool Tells PHP whether the short form [] of PHP's open tag should be allowed. If you want to use PHP in combination with XML, you can disable this option in order to use
inline. Otherwise, you can print it with PHP, for example:
. Also, if disabled, you must use
the long form of the PHP open tag [
].
Note:
This directive does not affect the shorthand