From: jmarois at ca dot ibm dot com Operating system: Irrelevant PHP version: 5.2.10 PHP Bug Type: Feature/Change Request Bug description: Feature Request
Description: ------------ About your Data Filters ************************************************************************ First the validation filters. ------------------------------------------------------------------------ You defined: FILTER_VALIDATE_EMAIL, FILTER_VALIDATE_IP and FILTER_VALIDATE_URL. I request adding: FILTER_VALIDATE_MAC for MAC addresses, considering (1) the six groups of two hexadecimal digits, separated by hyphens (-) or colons (:) format, and (2) three groups of four hexadecimal digits separated by dots (.) format. Of course, not forgetting the default of twelve hexadecimal digits. Next the sanitizing filters. ------------------------------------------------------------------------ I request adding: FILTER_SANITIZE_MAC for MAC addresses, which would remove all characters except hexadecimal digits. Reproduce code: --------------- --- >From manual page: filter.filters.validate --- -- Edit bug report at http://bugs.php.net/?id=49180&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49180&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49180&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49180&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49180&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49180&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49180&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49180&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49180&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49180&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49180&r=support Expected behavior: http://bugs.php.net/fix.php?id=49180&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49180&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49180&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49180&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49180&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49180&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49180&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49180&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49180&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49180&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49180&r=mysqlcfg
