note 18056 deleted from function.ip2long by sniper
| From: | sniper@php.net | Date: | Sat, 20 Sep 2003 07:50:57 +0000 |
| Subject: | note 18056 deleted from function.ip2long by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56801@lists.php.net to get a copy of this message | ||
Note Submitter: c.greenNOSP@Mits.uq.edu.au
----
From my brief experimenting (it doesn't seem to mention this in the function notes) if there is
an alphabetic character in the ip it will return -1, if it is a non valid numeric number it will
still return a value.
I would prefer the function validated that its input was a valid IP in all cases, but seeing as it
doesn't you will need to do this yourself.