User:Nextwaterfd/sandbox


 * 1) 44976 [NEW]: PHP 5.2.6 says Fatal error: Call to undefined function filter_var

Mon, 12 May 2008 20:12:02 -0700

Operating system: FreeBSD 6.3-ST PHP version:     5.2.6 PHP Bug Type:    *General Issues Bug description: PHP 5.2.6 says Fatal error: Call to undefined function filter_var

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 bug report at http:// bugs.php.net/?id=44976&edit=1 -- Try a CVS snapshot (PHP 5.2): http:// bugs.php.net/fix.php?id=44976&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http:// bugs.php.net/fix.php?id=44976&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http:// bugs.php.net/fix.php?id=44976&r=trysnapshot60 Fixed in CVS:                http:// bugs.php.net/fix.php?id=44976&r=fixedcvs Fixed in release: http:// bugs.php.net/fix.php?id=44976&r=alreadyfixed Need backtrace:              http:// bugs.php.net/fix.php?id=44976&r=needtrace Need Reproduce Script:       http:// bugs.php.net/fix.php?id=44976&r=needscript Try newer version:           http:// bugs.php.net/fix.php?id=44976&r=oldversion Not developer issue:         http:// bugs.php.net/fix.php?id=44976&r=support Expected behavior:           http:// bugs.php.net/fix.php?id=44976&r=notwrong Not enough info: http:// bugs.php.net/fix.php?id=44976&r=notenoughinfo Submitted twice: http:// bugs.php.net/fix.php?id=44976&r=submittedtwice register_globals:            http:// bugs.php.net/fix.php?id=44976&r=globals PHP 4 support discontinued:  http:// bugs.php.net/fix.php?id=44976&r=php4 Daylight Savings:            http:// bugs.php.net/fix.php?id=44976&r=dst IIS Stability:               http:// bugs.php.net/fix.php?id=44976&r=isapi Install GNU Sed:             http:// bugs.php.net/fix.php?id=44976&r=gnused Floating point limitations:  http:// bugs.php.net/fix.php?id=44976&r=float No Zend Extensions:          http:// bugs.php.net/fix.php?id=44976&r=nozend MySQL Configuration Error:   http:// bugs.php.net/fix.php?id=44976&r=mysqlcfg