Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64560 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7758 invoked from network); 5 Jan 2013 21:58:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2013 21:58:15 -0000 Authentication-Results: pb1.pair.com header.from=martin@divbyzero.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=martin@divbyzero.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain divbyzero.net from 87.230.111.147 cause and error) X-PHP-List-Original-Sender: martin@divbyzero.net X-Host-Fingerprint: 87.230.111.147 mx.bauer-kirch.de Linux 2.6 Received: from [87.230.111.147] ([87.230.111.147:55087] helo=mx.bauer-kirch.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B1/38-62408-5F1A8E05 for ; Sat, 05 Jan 2013 16:58:13 -0500 Received: by mx.bauer-kirch.de with ESMTP id 1Trbko-0006oM-Ad for ; Sat, 05 Jan 2013 22:58:10 +0100 Message-ID: <50E8A1F0.7060801@divbyzero.net> Date: Sat, 05 Jan 2013 22:58:08 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: MAC address validation for ext/filter From: martin@divbyzero.net (Martin Jansen) In https://github.com/php/php-src/pull/247 I have implemented MAC address validation for ext/filter. The current implementation detects MAC addresses in three notations (IEEE 802 with colons or hyphens and EUI-64 with dots) and optionally one can specify the expected separator character (colons/hyphens/dots). If you like the patch, feel free to merge the PR. I think I have enough karma to do it myself as well, if you want me to. - Martin