[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
|