#44976 [Opn]: PHP 5.2.6 says Fatal error: Call to undefined function filter_var()
| From: | marcabconfederacy24 at yahoo dot com | Date: | Tue, 13 May 2008 03:25:03 +0000 |
| Subject: | #44976 [Opn]: PHP 5.2.6 says Fatal error: Call to undefined function filter_var() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124927@lists.php.net to get a copy of this message | ||
ID: 44976
User updated by: marcabconfederacy24 at yahoo dot com
Reported By: marcabconfederacy24 at yahoo dot com
Status: Open
Bug Type: *General Issues
-Operating System: FreeBSD
+Operating System: FreeBSD 6.3
PHP Version: 5.2.6
New Comment:
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()
Previous Comments:
------------------------------------------------------------------------
[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('bob@example.com',
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('bob@example.com', 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