ID: 44976 User updated by: marcabconfederacy24 at yahoo dot com Reported By: marcabconfederacy24 at yahoo dot com -Status: Feedback +Status: Open Bug Type: *General Issues Operating System: FreeBSD 6.3 PHP Version: 5.2.6 Assigned To: pajoye New Comment:
Oops I was looking at the wrong thing. Anyway, the manual says the filter extension is built in to version 5.2.0 and above and does not need to be installed. And only older versions need it installed. Previous Comments: ------------------------------------------------------------------------ [2008-05-13 06:11:05] [EMAIL PROTECTED] Please load the "filter" extension, not Apache's mod_filter. ------------------------------------------------------------------------ [2008-05-13 03:25:03] marcabconfederacy24 at yahoo dot com I checked and these also get "Fatal error: Call to undefined function" on 5.2.6 with phpinfo saying mod_filter is loaded filter_var_array() filter_input() filter_input_array() ------------------------------------------------------------------------ [2008-05-13 03:17:34] marcabconfederacy24 at yahoo dot com test ------------------------------------------------------------------------ [2008-05-13 03:16:24] marcabconfederacy24 at yahoo dot com I forgot to mention, phpinfo says "mod_filter" is loaded. ------------------------------------------------------------------------ [2008-05-13 03:11:50] marcabconfederacy24 at yahoo dot com Description: ------------ I take the sample code directly from your website. This is not the first time sample code from it has not worked. http://us.php.net/manual/en/function.filter-var.php I have the latest PHP version, 5.2.6 I use "var_dump(filter_var('[EMAIL PROTECTED]', FILTER_VALIDATE_EMAIL));" Exactly what your website says. PHP 5.2.6 says "Fatal error: Call to undefined function filter_var()" I googled it and the old reason it should do that is on older PHP versions. But mine is 5.2.6. PS: I've had to so far do 20 tries to read your captcha and your site made me confirm this a million times, each time having to read a new one. I think I should buy captcha-reading software from that Chinese website as it reads better than humans. Reproduce code: --------------- var_dump(filter_var('[EMAIL PROTECTED]', FILTER_VALIDATE_EMAIL)); Expected result: ---------------- What it says at http://us.php.net/manual/en/function.filter-var.php Actual result: -------------- Fatal error: Call to undefined function filter_var() in /usr/local/www/[my website name removed]/www/register.php on line 172 [my website name removed] = I'd rather not post my website's name until it's ready to open. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44976&edit=1