cvs: phpdoc /en/reference/filter/functions filter-input-array.xml
| From: | Jakub Vrana | Date: | Mon, 20 Aug 2007 14:46:08 +0000 |
| Subject: | cvs: phpdoc /en/reference/filter/functions filter-input-array.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969377789@lists.php.net to get a copy of this message | ||
vrana Mon Aug 20 14:46:08 2007 UTC
Modified files:
/phpdoc/en/reference/filter/functions filter-input-array.xml
Log:
FILTER_REQUIRE_(ARRAY|SCALAR) (bug #42342)
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filter/functions/filter-input-array.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc/en/reference/filter/functions/filter-input-array.xml
diff -u phpdoc/en/reference/filter/functions/filter-input-array.xml:1.5
phpdoc/en/reference/filter/functions/filter-input-array.xml:1.6
--- phpdoc/en/reference/filter/functions/filter-input-array.xml:1.5 Wed Jun 20 22:24:28 2007
+++ phpdoc/en/reference/filter/functions/filter-input-array.xml Mon Aug 20 14:46:08 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<refentry xml:id="function.filter-input-array" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>filter_input_array</refname>
@@ -89,18 +89,18 @@
$args = array(
'product_id' => FILTER_SANITIZE_ENCODED,
'component' => array('filter' => FILTER_VALIDATE_INT,
- 'flags' => FILTER_FLAG_ARRAY,
+ 'flags' => FILTER_REQUIRE_ARRAY,
'options' => array('min_range' => 1,
'max_range' => 10)
),
'versions' => FILTER_SANITIZE_ENCODED,
'doesnotexist' => FILTER_VALIDATE_INT,
'testscalar' => array(
'filter' => FILTER_VALIDATE_INT,
- 'flags' => FILTER_FLAG_SCALAR,
+ 'flags' => FILTER_REQUIRE_SCALAR,
),
'testarray' => array(
'filter' => FILTER_VALIDATE_INT,
- 'flags' => FILTER_FLAG_ARRAY,
+ 'flags' => FILTER_REQUIRE_ARRAY,
)
);