<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Zend_Filter_Input and arrays</title>
	<link>http://www.oeic.net/oeic/2007/12/06/zend_filter_input-and-arrays/</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Wed, 07 Jan 2009 13:46:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: Chris</title>
		<link>http://www.oeic.net/oeic/2007/12/06/zend_filter_input-and-arrays/#comment-638</link>
		<author>Chris</author>
		<pubDate>Thu, 14 Feb 2008 23:30:00 +0000</pubDate>
		<guid>http://www.oeic.net/oeic/2007/12/06/zend_filter_input-and-arrays/#comment-638</guid>
					<description>ZF seems to support 2-dimensional now. But too much in fact. It automatically recurses arrays. If you attach a Digits filter to an input parameter an array of digits will pass as well and there seems no way to distinguish the two using Zend_Filter_Input. Very annoying...</description>
		<content:encoded><![CDATA[<p>ZF seems to support 2-dimensional now. But too much in fact. It automatically recurses arrays. If you attach a Digits filter to an input parameter an array of digits will pass as well and there seems no way to distinguish the two using Zend_Filter_Input. Very annoying&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.oeic.net/oeic/2007/12/06/zend_filter_input-and-arrays/#comment-710</link>
		<author>Frank</author>
		<pubDate>Wed, 20 Feb 2008 17:39:51 +0000</pubDate>
		<guid>http://www.oeic.net/oeic/2007/12/06/zend_filter_input-and-arrays/#comment-710</guid>
					<description>It seems to support 2-dimensional, but not n-dimensional which I think is very disappointing. So you have to jump through a bunch of hoops if you pass n-dimensional arrays in your $_REQUEST data. Why recurse only 2 levels deep Zend?!</description>
		<content:encoded><![CDATA[<p>It seems to support 2-dimensional, but not n-dimensional which I think is very disappointing. So you have to jump through a bunch of hoops if you pass n-dimensional arrays in your $_REQUEST data. Why recurse only 2 levels deep Zend?!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: steve</title>
		<link>http://www.oeic.net/oeic/2007/12/06/zend_filter_input-and-arrays/#comment-711</link>
		<author>steve</author>
		<pubDate>Wed, 20 Feb 2008 18:08:53 +0000</pubDate>
		<guid>http://www.oeic.net/oeic/2007/12/06/zend_filter_input-and-arrays/#comment-711</guid>
					<description>I think a good solution to this issue would have the library implement a RECURSIVE metacommand, like the break chain and message metacommands. This could default to the full depth of the array, while specifying a number for the value would set the recursion depth. Something like 
$validators = array(
    'month' =&gt; array(
        'Digits',
        'recursive' =&gt; true
    )
);

I think I'll suggest that as a feature in the ZF JIRA tracker.</description>
		<content:encoded><![CDATA[<p>I think a good solution to this issue would have the library implement a RECURSIVE metacommand, like the break chain and message metacommands. This could default to the full depth of the array, while specifying a number for the value would set the recursion depth. Something like<br />
$validators = array(<br />
    &#8216;month&#8217; => array(<br />
        &#8216;Digits&#8217;,<br />
        &#8216;recursive&#8217; => true<br />
    )<br />
);</p>
<p>I think I&#8217;ll suggest that as a feature in the ZF JIRA tracker.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
