php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71405 Some constants are not documented
Submitted: 2016-01-18 13:32 UTC Modified: 2016-01-19 19:29 UTC
From: jcastromail at yahoo dot es Assigned: cmb (profile)
Status: Closed Package: Filter related
PHP Version: 7.0.2 OS: windows 8.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
48 - 39 = ?
Subscribe to this entry?

 
 [2016-01-18 13:32 UTC] jcastromail at yahoo dot es
Description:
------------
---
From manual page: http://www.php.net/filter.filters.flags
---
For example the flag FILTER_REQUIRE_ARRAY is not even mentioned and may be other flags aren't in the list (such FILTER_FORCE_ARRAY)

Those values aren't in the mentioned page nor in http://php.net/manual/en/filter.filters.php

But its mentioned in the next page as an example

http://php.net/manual/en/function.filter-input-array.php


Test script:
---------------
<form method='post'>
    <input type='text' name='fields[0]' value='v1' />
    <input type='text' name='fields[1]' value='v2' />
    <br>
    <input type='submit' name='button' value='sendme' />
</form>
<?php filter_input(INPUT_POST,'fields', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY)
// it works as expected
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-19 19:24 UTC] cmb@php.net
-Summary: The documentation is incomplete +Summary: Some constants are not documented -Package: Documentation problem +Package: Filter related -Assigned To: +Assigned To: cmb
 [2016-01-19 19:27 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=338526
Log: fixed #71405: Some constants are not documented
 [2016-01-19 19:28 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 [2016-01-19 19:28 UTC] cmb@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2016-01-19 19:29 UTC] cmb@php.net
Wrong quick-fix text. Should have been:
	
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:07 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=5a8a3c027c90b0118a0c4ec2c63cbcdcaefc287b
Log: fixed #71405: Some constants are not documented
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri May 27 21:05:46 2022 UTC