|
135 | 135 | </term> |
136 | 136 | <listitem> |
137 | 137 | <simpara> |
138 | | - This flags wraps scalar inputs into a one element <type>array</type> |
| 138 | + This flag wraps scalar inputs into a one element <type>array</type> |
139 | 139 | for filters which operate on arrays. |
140 | 140 | </simpara> |
141 | 141 | </listitem> |
|
264 | 264 | <listitem> |
265 | 265 | <simpara> |
266 | 266 | Returns &true; for <literal>"1"</literal>, |
267 | | - <literal>"true"</literal>, |
| 267 | + <literal>1</literal> including binary, octal and hexadecimal notations, <literal>1.0</literal>, |
| 268 | + <literal>"true"</literal>, <literal>true</literal>, |
268 | 269 | <literal>"on"</literal>, |
269 | 270 | and <literal>"yes"</literal>. |
270 | 271 | </simpara> |
271 | 272 | <simpara> |
272 | 273 | Returns &false; for <literal>"0"</literal>, |
273 | | - <literal>"false"</literal>, |
| 274 | + <literal>0</literal> including binary, octal and hexadecimal notations, <literal>0.0</literal>, |
| 275 | + <literal>"false"</literal>, <literal>false</literal>, |
274 | 276 | <literal>"off"</literal>, |
275 | 277 | <literal>"no"</literal>, and |
276 | 278 | <literal>""</literal>. |
277 | 279 | </simpara> |
278 | 280 | <simpara> |
| 281 | + String values are compared case-insensitively. |
279 | 282 | The return value for non-boolean values depends on the |
280 | 283 | <constant>FILTER_NULL_ON_FAILURE</constant>. |
281 | 284 | If it is set, &null; is returned, otherwise &false; is returned. |
|
499 | 502 | </term> |
500 | 503 | <listitem> |
501 | 504 | <simpara> |
502 | | - Validates whether the <acronym>URL</acronym> name is valid according to |
| 505 | + Validates whether the <acronym>URL</acronym> is valid according to |
503 | 506 | <link xlink:href="&url.rfc;2396">RFC 2396</link>. |
504 | 507 | </simpara> |
505 | 508 | <variablelist xml:id="filter.constants.validation.url.options"> |
|
949 | 952 | <member><literal>&</literal></member> |
950 | 953 | </simplelist> |
951 | 954 | and characters with an ASCII value less than 32. |
| 955 | + Unlike the <constant>FILTER_SANITIZE_FULL_SPECIAL_CHARS</constant> filter, the |
| 956 | + <constant>FILTER_SANITIZE_SPECIAL_CHARS</constant> filter ignores the |
| 957 | + <constant>FILTER_FLAG_NO_ENCODE_QUOTES</constant> flag. |
952 | 958 | </para> |
953 | 959 | <simpara> |
954 | 960 | Optionally it can strip specified characters if used together with |
|
0 commit comments