ID: 47626 Updated by: [email protected] Reported By: geo_pro at hotmail dot com -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: FreeBSD 7.1 PHP Version: 5.2.9 New Comment:
How did you install PHP? Do you have the configure line? Previous Comments: ------------------------------------------------------------------------ [2009-03-11 18:45:15] geo_pro at hotmail dot com Description: ------------ apache 2.2, php as apache module It seems that filter_input() function is missing. As far as I know it should be in "base" php (no extensions required). I noticed this in my apache log: PHP Fatal error: Call to undefined function filter_input() in /usr/local/www/pulsar/temp/testtt.php on line 2 testtt.php is exactly the same sample from http://www.php.net/manual/en/function.filter-input.php This happens to php 5.2.9 and php 5.2.8 too (havent tested older) I'll post more details if requested Reproduce code: --------------- <?php $search_html = filter_input(INPUT_GET, 'search', FILTER_SANITIZE_SPECIAL_CHARS); $search_url = filter_input(INPUT_GET, 'search', FILTER_SANITIZE_ENCODED); echo "You have searched for $search_html.\n"; echo "<a href='?search=$search_url'>Search again.</a>"; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47626&edit=1
