ID: 42608 Comment by: ChadFulton at gmail dot com Reported By: phpbugs dot 20 dot zsh at spamgourmet dot com Status: Open Bug Type: Feature/Change Request Operating System: Irrelevant PHP Version: 5.2.4 New Comment:
Although this is a very old bug, it seems to me that the poster is incorrect; I suspect the problem is that the poster attempted to set the $_POST array during runtime (e.g. $_POST = array( ... ); ), and filter_input_array does not allow runtime modification $_POST, $_GET, etc. Previous Comments: ------------------------------------------------------------------------ [2007-09-10 11:04:44] phpbugs dot 20 dot zsh at spamgourmet dot com Description: ------------ The example will not output the array shown below the example code -- any undefined variable will cause filter_input_array() to return (so the output would be "NULL"). You'll notice I've classified this as a change request rather than a documentation problem, for the expected (and described ("Return Values")) behavior in example #660 makes WAY more sense. Reproduce code: --------------- http://www.php.net/filter_input_array ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42608&edit=1