|
32 | 32 | </tgroup>
|
33 | 33 | </table>
|
34 | 34 | &ini.php.constants;
|
35 |
| -</para> |
| 35 | + </para> |
36 | 36 |
|
37 |
| -&ini.descriptions.title; |
| 37 | + &ini.descriptions.title; |
38 | 38 |
|
39 |
| -<para> |
40 | 39 | <variablelist>
|
41 | 40 | <varlistentry xml:id="ini.filter.default">
|
42 | 41 | <term>
|
|
51 | 50 | Original data can be accessed through <function>filter_input</function>.
|
52 | 51 | </para>
|
53 | 52 | <para>
|
54 |
| - Accepts the name of the filter you like to use by default. See the |
55 |
| - existing <link linkend="filter.filters">filter list</link> for the list |
56 |
| - of the filter names. |
| 53 | + Must be the name of a filter which can be determined by using |
| 54 | + <function>filter_list</function> and <function>filter_id</function>. |
57 | 55 | </para>
|
58 | 56 | <note>
|
59 |
| - <para> |
60 |
| - Be careful about the default flags for the default filters. You should explicitly |
61 |
| - set them to the value you want. For example, to configure the default filter to |
62 |
| - behave exactly like <function>htmlspecialchars</function> you need to set them |
63 |
| - default flags to 0 as shown below. |
64 |
| - </para> |
65 |
| - <para> |
66 |
| - <example> |
67 |
| - <title>Configuring the default filter to act like htmlspecialchars</title> |
68 |
| - <programlisting role="php"> |
| 57 | + <simpara> |
| 58 | + Be careful about the default flags for the default filters. |
| 59 | + They should be set explicitly. |
| 60 | + For example, to configure the default filter to behave exactly like |
| 61 | + <function>htmlspecialchars</function> the default flags must be set to |
| 62 | + <literal>0</literal>, as shown in the example below. |
| 63 | + </simpara> |
| 64 | + <example> |
| 65 | + <title>Configuring the default filter to act like htmlspecialchars</title> |
| 66 | + <programlisting role="php"> |
69 | 67 | <![CDATA[
|
70 | 68 | filter.default = full_special_chars
|
71 | 69 | filter.default_flags = 0
|
72 | 70 | ]]>
|
73 |
| - </programlisting> |
74 |
| - </example> |
75 |
| - </para> |
76 |
| - </note> |
| 71 | + </programlisting> |
| 72 | + </example> |
| 73 | + </note> |
| 74 | + <warning> |
| 75 | + <simpara> |
| 76 | + This INI setting is deprecated as of PHP 8.1.0. |
| 77 | + </simpara> |
| 78 | + </warning> |
77 | 79 | </listitem>
|
78 | 80 | </varlistentry>
|
79 |
| - |
| 81 | + |
80 | 82 | <varlistentry xml:id="ini.filter.default-flags">
|
81 | 83 | <term>
|
82 | 84 | <parameter>filter.default_flags</parameter>
|
83 | 85 | <type>int</type>
|
84 | 86 | </term>
|
85 | 87 | <listitem>
|
86 |
| - <para> |
87 |
| - Default flags to apply when the default filter is set. This is set to |
88 |
| - <constant>FILTER_FLAG_NO_ENCODE_QUOTES</constant> by default for backwards |
89 |
| - compatibility reasons. See the <link linkend="filter.filters.flags">flag list</link> |
90 |
| - for the list of all the flag names. |
91 |
| - </para> |
| 88 | + <simpara> |
| 89 | + Default flags to apply when the default filter is set. |
| 90 | + This is set to <constant>FILTER_FLAG_NO_ENCODE_QUOTES</constant> |
| 91 | + by default for backwards compatibility reasons. |
| 92 | + See <constant>FILTER_FLAG_<replaceable>*</replaceable></constant> |
| 93 | + constants for available flags. |
| 94 | + </simpara> |
92 | 95 | </listitem>
|
93 | 96 | </varlistentry>
|
94 |
| - |
95 | 97 | </variablelist>
|
96 |
| - </para> |
97 | 98 | </section>
|
98 |
| - |
99 | 99 | <!-- Keep this comment at the end of the file
|
100 | 100 | Local variables:
|
101 | 101 | mode: sgml
|
|
0 commit comments