ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pear-dev
pear-dev
[PEAR-DEV] [PEPr] Comment on Networking::Net_CheckMAC
by Justin Patrin other posts by this author
Oct 25 2006 9:41PM messages near this date
[PEAR-DEV] [PEPr] Comment on Networking::Net_CheckMAC | [PEAR-DEV] [PEPr] Comment on Networking::Net_CheckMAC
Justin Patrin (http://pear.php.net/user/justinpatrin) has commented on the proposal for Netw
orking::Net_CheckMAC.

Comment:

As Graham mentioned,
($uppercase) ? $macaddr = strtoupper($macaddr) : $macaddr =
strtolower($macaddr);
should be
$macaddr = ($uppercase) ? strtoupper($macaddr) : strtolower($macaddr);

I'd rather you used ' and . for your strings instead of " to keep
consistency (and for readability).

Why replace any non-ok chars at the beginning? Shouldn't any string that
has these chars fail as it's not an ok MAC?

Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=454

-- 
Sent by PEPr, the automatic proposal system at http://pear.php.net

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Andrew Teixeira
Greg Beaver
Andrew Teixeira
Justin Patrin
Christian Weiske
Andrew Teixeira
Andrew Teixeira
Arnaud Limbourg
Justin Patrin
Andrew Teixeira
Andrew Teixeira
Andrew Teixeira
Stefan Neufeind
Arnaud Limbourg
Justin Patrin
Graham Christensen

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved