svn: /phpdoc/en/trunk/reference/filter/ book.xml constants.xml functions/filter-var.xml

From: Date: Mon, 04 Apr 2011 14:28:17 +0000
Subject: svn: /phpdoc/en/trunk/reference/filter/ book.xml constants.xml functions/filter-var.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7920@lists.php.net to get a copy of this message
salathe Mon, 04 Apr 2011 14:28:17 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=309945 Log: remove noop url filter flags Changed paths: U phpdoc/en/trunk/reference/filter/book.xml U phpdoc/en/trunk/reference/filter/constants.xml U phpdoc/en/trunk/reference/filter/functions/filter-var.xml Modified: phpdoc/en/trunk/reference/filter/book.xml =================================================================== --- phpdoc/en/trunk/reference/filter/book.xml 2011-04-04 13:11:00 UTC (rev 309944) +++ phpdoc/en/trunk/reference/filter/book.xml 2011-04-04 14:28:17 UTC (rev 309945) @@ -33,9 +33,9 @@ <para> <emphasis>Flags</emphasis> are optionally used with both validation and sanitization to tweak behaviour according to need. For example, passing - in <constant>FILTER_FLAG_SCHEME_REQUIRED</constant> while filtering an - <acronym>URL</acronym> will require a scheme (like http://) to be - present. + in <constant>FILTER_FLAG_PATH_REQUIRED</constant> while filtering an + <acronym>URL</acronym> will require a path (like <literal>/foo</literal> + in <literal>http://example.org/foo</literal>) to be present. </para> </preface> Modified: phpdoc/en/trunk/reference/filter/constants.xml =================================================================== --- phpdoc/en/trunk/reference/filter/constants.xml 2011-04-04 13:11:00 UTC (rev 309944) +++ phpdoc/en/trunk/reference/filter/constants.xml 2011-04-04 14:28:17 UTC (rev 309945) @@ -483,28 +483,6 @@ </varlistentry> <varlistentry> <term> - <constant>FILTER_FLAG_SCHEME_REQUIRED</constant> - (<type>integer</type>) - </term> - <listitem> - <simpara> - Require scheme in "validate_url" filter. - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>FILTER_FLAG_HOST_REQUIRED</constant> - (<type>integer</type>) - </term> - <listitem> - <simpara> - Require host in "validate_url" filter. - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> <constant>FILTER_FLAG_PATH_REQUIRED</constant> (<type>integer</type>) </term> Modified: phpdoc/en/trunk/reference/filter/functions/filter-var.xml =================================================================== --- phpdoc/en/trunk/reference/filter/functions/filter-var.xml 2011-04-04 13:11:00 UTC (rev 309944) +++ phpdoc/en/trunk/reference/filter/functions/filter-var.xml 2011-04-04 14:28:17 UTC (rev 309945) @@ -103,7 +103,7 @@ <![CDATA[ <?php var_dump(filter_var('bob@example.com', FILTER_VALIDATE_EMAIL)); -var_dump(filter_var('example.com', FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)); +var_dump(filter_var('http://example.com', FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED)); ?> ]]> </programlisting>

« previous php.doc.cvs (#7920) next »