Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004063 [Quercus] minor always 06-02-10 03:23 05-04-14 13:08
Reporter hm2k View Status public  
Assigned To nam
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 4.0.7
  Product Build
Summary 0004063: string::1: Fatal Error: 'filter_var' is an unknown function.
Description Example 0000001 A filter_var() example
<?php
var_dump(filter_var('bob@example.com', FILTER_VALIDATE_EMAIL));
var_dump(filter_var('example.com', FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED));
?>

The above example should output:

string(15) "bob@example.com"
bool(false)

Instead it returns the following error:

string::1: Fatal Error: 'filter_var' is an unknown function.
Steps To Reproduce
Additional Information See http://php.net/manual/en/function.filter-var.php [^]
Attached Files

- Relationships

- Notes
(0004626)
sblommers
06-02-10 05:35

Looks like it's not implemented yet, I get the same error on the latest SVN build.
 
(0004857)
gbruins
11-19-10 09:32

I am able to use filter_var, but FILTER_VALIDATE_EMAIL does not work properly:

var_dump(filter_var('bob@example.com', FILTER_VALIDATE_EMAIL)); // bool(false)
 
(0006442)
nam
05-04-14 13:07

filter_var() was implemented a while back.

FILTER_VALIDATE_URL is not yet implemented: http://bugs.caucho.com/view.php?id=5730 [^]
 

- Issue History
Date Modified Username Field Change
06-02-10 03:23 hm2k New Issue
06-02-10 05:35 sblommers Note Added: 0004626
06-04-10 08:03 sblommers Issue Monitored: sblommers
11-19-10 09:32 gbruins Note Added: 0004857
11-20-10 10:19 kdecherf Issue Monitored: kdecherf
05-04-14 13:07 nam Status new => assigned
05-04-14 13:07 nam Assigned To  => nam
05-04-14 13:07 nam Status assigned => closed
05-04-14 13:07 nam Note Added: 0006442
05-04-14 13:08 nam Resolution open => fixed


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
39 total queries executed.
32 unique queries executed.
Powered by Mantis Bugtracker