2021-04-28 16:49:39 +02:00
|
|
|
Directives in the php.ini files can be of type ``++boolean++``, ``++integer++`` or ``++string++``.
|
|
|
|
|
|
|
|
For ``++boolean++`` acceptable values are ``++0++``, ``++1++``, ``++true++``, ``++false++``, ``++yes++``, ``++no++``, ``++on++`` and ``++off++``.
|
|
|
|
|
|
|
|
For ``++integers++`` they can be qualified with ``++k++``, ``++m++`` or ``++g++``. E.g. 16k means 16000.
|
|
|
|
|
|
|
|
The complete list of directive is at \http://php.net/manual/en/ini.list.php
|
|
|
|
|
2021-04-28 18:08:03 +02:00
|
|
|
|
2021-04-28 16:49:39 +02:00
|
|
|
== Noncompliant Code Example
|
|
|
|
|
|
|
|
----
|
|
|
|
allow_url_include = 42; Noncompliant, should be a boolean
|
|
|
|
max_execution_time = "1024"; Noncompliant, should be an integer
|
|
|
|
----
|
|
|
|
|
2021-04-28 18:08:03 +02:00
|
|
|
|
2021-04-28 16:49:39 +02:00
|
|
|
== Compliant Solution
|
|
|
|
|
|
|
|
----
|
|
|
|
allow_url_include = false
|
|
|
|
max_execution_time = 1024
|
|
|
|
----
|
2021-04-28 18:08:03 +02:00
|
|
|
|
2021-06-02 20:44:38 +02:00
|
|
|
|
2021-06-03 09:05:38 +02:00
|
|
|
ifdef::env-github,rspecator-view[]
|
2021-06-02 20:44:38 +02:00
|
|
|
== Comments And Links
|
|
|
|
(visible only on this page)
|
|
|
|
|
|
|
|
include::comments-and-links.adoc[]
|
2021-06-03 09:05:38 +02:00
|
|
|
endif::env-github,rspecator-view[]
|