ID: 44976 Updated by: [EMAIL PROTECTED] Reported By: marcabconfederacy24 at yahoo dot com -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: FreeBSD 6.3 PHP Version: 5.2.6 -Assigned To: +Assigned To: pajoye New Comment:
Please load the "filter" extension, not Apache's mod_filter. Previous Comments: ------------------------------------------------------------------------ [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